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


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

Vendor_054c_Product_0268.kl

  • Vendor: Sony Corp.

  • Product: Batoh Device / PlayStation 3 Controller

  • Строк: 29

    1. key DPAD_UP 0x124 [292]

    2. key BUTTON_SELECT 0x120 [288]

    3. key BUTTON_START 0x123 [291]

    4. key BUTTON_MODE 0x2d0 [720]

    5. key BUTTON_THUMBR 0x122 [290]

    6. key BUTTON_THUMBL 0x121 [289]

    7. key BUTTON_R2 0x129 [297]

    8. key BUTTON_L2 0x128 [296]

    9. key BUTTON_R1 0x12b [299]

    10. key BUTTON_L1 0x12a [298]

    11. key BUTTON_Y 0x12c [300]

    12. key BUTTON_X 0x12f [303]

    13. key BUTTON_B 0x12d [301]

    14. key BUTTON_A 0x12e [302]

    15. key DPAD_LEFT 0x127 [295]

    16. key DPAD_DOWN 0x126 [294]

    17. key DPAD_RIGHT 0x125 [293]

    18. axis RTRIGGER 0x31 [49]

    19. axis LTRIGGER 0x30 [48]

    20. axis RZ 0x05 [5]

    21. axis Z 0x02 [2]

    22. axis Y 0x01 [1]

    23. axis X 0x00 [0]

    24. sensor GYROSCOPE Y 0x04 [4]

    25. sensor GYROSCOPE X 0x03 [3]

    26. sensor ACCELEROMETER Z 0x02 [2]

    27. sensor ACCELEROMETER Y 0x01 [1]

    28. sensor ACCELEROMETER X 0x00 [0]

    29. sensor GYROSCOPE Z 0x05 [5]



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

    # Copyright (C) 2011 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.

    #
    # Sony Playstation(R)3 Controller
    #

    key 0x124 DPAD_UP
    key 0x125 DPAD_RIGHT
    key 0x126 DPAD_DOWN
    key 0x127 DPAD_LEFT

    key 0x12e BUTTON_A
    key 0x12d BUTTON_B
    key 0x12f BUTTON_X
    key 0x12c BUTTON_Y
    key 0x12a BUTTON_L1
    key 0x12b BUTTON_R1
    key 0x128 BUTTON_L2
    key 0x129 BUTTON_R2
    key 0x121 BUTTON_THUMBL
    key 0x122 BUTTON_THUMBR

    # Left Analog Stick
    axis 0x00 X
    axis 0x01 Y

    # Right Analog Stick
    axis 0x02 Z
    axis 0x05 RZ

    # DPAD
    # axis 0x2c -HAT_Y
    # axis 0x2d +HAT_X
    # axis 0x2e +HAT_Y
    # axis 0x2f -HAT_X

    # L2 trigger
    axis 0x30 LTRIGGER

    # R2 trigger
    axis 0x31 RTRIGGER

    # L1 trigger
    # axis 0x32

    # R1 trigger
    # axis 0x33

    # Triangle
    # axis 0x34

    # Circle
    # axis 0x35

    # Cross
    # axis 0x36

    # Square
    # axis 0x37

    # Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt
    # Select
    key 0x120 BUTTON_SELECT
    # Start
    key 0x123 BUTTON_START
    # PS key
    key 0x2d0 BUTTON_MODE

    # SENSORs
    sensor 0x00 ACCELEROMETER X
    sensor 0x01 ACCELEROMETER Y
    sensor 0x02 ACCELEROMETER Z
    sensor 0x03 GYROSCOPE X
    sensor 0x04 GYROSCOPE Y
    sensor 0x05 GYROSCOPE Z