• Tetsui Ohkubo's avatar
    ozone: Add raw scancode to GamepadEvent. · aab278dc
    Tetsui Ohkubo authored
    Currently, Ozone converts evdev scancode to Web Gamepad keycode, and
    the keycode is stored in |code| field of GamepadEvent. This CL adds
    |raw_code| field to GamepadEvent, which is the original evdev scancode.
    
    This is a part of ARC++ Improved Gamepad Support, which will forward
    raw scancode to Android container rather than converting scancode to
    keycode in Ozone. For further background, please check the design doc:
    go/arc-improved-gamepad
    
    TBR=oshima@chromium.org
    TEST=manual
    BUG=b:130597086
    
    Change-Id: Id66565631eae9f0e90432b63160b7d82728ec12f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1602232
    Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
    Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#659419}
    aab278dc
gamepad_event.h 1.14 KB