• Nicholas Hollingum's avatar
    Use set MouseEvent.movement() on CrOS with ordinal_movement · f02dbfca
    Nicholas Hollingum authored
    MouseEvent.movement() stores the platoform-dependant "Raw mouse motion"
    values, as reported by hardware. It is currently only available on
    windows. Support for the value is indicated by the presence of the flag
    EF_UNADJUSTED_MOUSE.
    
    In this CL, we add support for this on CrOS. We intend to use this in
    order to improve the relative pointer handling in Exo, which requires
    unaccelerated mouse motion (and currently we only have access to
    accelerated motion).
    
    This change is only implemented for CrOS (for now) because:
     1) previously it was only implemented for windows, so cross-platform
        is not a hard requirement.
     2) For our use case, the intended user is zwp_relative_pointer.cc,
        which is only compiled for CrOS.
    
    Bug: 957455
    Change-Id: I9b6ca1740dcfb6aaba60c32f268270b3b0d386a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2277694Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarMichael Spang <spang@chromium.org>
    Commit-Queue: Nic Hollingum <hollingum@google.com>
    Cr-Commit-Position: refs/heads/master@{#804117}
    f02dbfca
event_utils.h 7.66 KB