Коды игровых манипуляторов


  Описание     Кнопки     Файлы устройств  

Vendor_18d1_Product_0200.kl

  • Vendor: Google Inc.

  • Product: Keyboard map for the android virtual remote running as a gamepad

  • Строк: 43

    1. key ASSIST 0x247 [583]

    2. key BUTTON_3 0x2c2 [706]

    3. key BUTTON_4 0x2c3 [707]

    4. key BUTTON_5 0x2c4 [708]

    5. key BUTTON_6 0x2c5 [709]

    6. key BUTTON_7 0x2c6 [710]

    7. key BUTTON_8 0x2c7 [711]

    8. key BUTTON_9 0x2c8 [712]

    9. key BUTTON_10 0x2c9 [713]

    10. key BUTTON_11 0x2ca [714]

    11. key BUTTON_12 0x2cb [715]

    12. key BUTTON_13 0x2cc [716]

    13. key BUTTON_14 0x2cd [717]

    14. key BUTTON_15 0x2ce [718]

    15. key BUTTON_16 0x2cf [719]

    16. key VOICE_ASSIST 0x246 [582]

    17. key BUTTON_2 0x2c1 [705]

    18. key BUTTON_1 0x2c0 [704]

    19. key DPAD_RIGHT 106 [0x006a]

    20. key BUTTON_A 0x130 [304]

    21. key BUTTON_B 0x131 [305]

    22. key BUTTON_X 0x133 [307]

    23. key BUTTON_Y 0x134 [308]

    24. key BUTTON_L2 0x136 [310]

    25. key BUTTON_R2 0x137 [311]

    26. key BUTTON_L1 0x138 [312]

    27. key BUTTON_R1 0x139 [313]

    28. key BUTTON_SELECT 0x13a [314]

    29. key DPAD_LEFT 105 [0x0069]

    30. key DPAD_DOWN 108 [0x006c]

    31. key DPAD_UP 103 [0x0067]

    32. key BUTTON_THUMBR 0x13e [318]

    33. key BUTTON_THUMBL 0x13d [317]

    34. key BUTTON_MODE 0x13c [316]

    35. key BUTTON_START 0x13b [315]

    36. axis HAT_X 0x10 [16]

    37. axis LTRIGGER 0x0a [10]

    38. axis RTRIGGER 0x09 [9]

    39. axis RZ 0x05 [5]

    40. axis Z 0x02 [2]

    41. axis Y 0x01 [1]

    42. axis X 0x00 [0]

    43. axis HAT_Y 0x11 [17]



  • Содержимое файла Vendor_18d1_Product_0200.kl

    # Copyright (C) 2020 The Android Open Source Project
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    # http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.

    #
    # Keyboard map for the android virtual remote running as a gamepad
    #

    key 0x130 BUTTON_A
    key 0x131 BUTTON_B
    key 0x133 BUTTON_X
    key 0x134 BUTTON_Y

    key 0x136 BUTTON_L2
    key 0x137 BUTTON_R2
    key 0x138 BUTTON_L1
    key 0x139 BUTTON_R1

    key 0x13a BUTTON_SELECT
    key 0x13b BUTTON_START
    key 0x13c BUTTON_MODE

    key 0x13d BUTTON_THUMBL
    key 0x13e BUTTON_THUMBR

    key 103 DPAD_UP
    key 108 DPAD_DOWN
    key 105 DPAD_LEFT
    key 106 DPAD_RIGHT

    # Generic usage buttons
    key 0x2c0 BUTTON_1
    key 0x2c1 BUTTON_2
    key 0x2c2 BUTTON_3
    key 0x2c3 BUTTON_4
    key 0x2c4 BUTTON_5
    key 0x2c5 BUTTON_6
    key 0x2c6 BUTTON_7
    key 0x2c7 BUTTON_8
    key 0x2c8 BUTTON_9
    key 0x2c9 BUTTON_10
    key 0x2ca BUTTON_11
    key 0x2cb BUTTON_12
    key 0x2cc BUTTON_13
    key 0x2cd BUTTON_14
    key 0x2ce BUTTON_15
    key 0x2cf BUTTON_16

    # assistant buttons
    key 0x246 VOICE_ASSIST
    key 0x247 ASSIST

    axis 0x00 X
    axis 0x01 Y
    axis 0x02 Z
    axis 0x05 RZ
    axis 0x09 RTRIGGER
    axis 0x0a LTRIGGER
    axis 0x10 HAT_X
    axis 0x11 HAT_Y