zombah

android joystick keylayout

Apr 30th, 2013
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. # Copyright (C) 2011 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14.  
  15. #
  16. # Logitech Wireless Gamepad F710 (DirectInput)
  17. #
  18.  
  19. key 0x130 BUTTON_X
  20. key 0x131 BUTTON_A
  21. key 0x132 BUTTON_B
  22. key 0x133 BUTTON_Y
  23. key 0x134 BUTTON_L1
  24. key 0x135 BUTTON_R1
  25. key 0x136 BUTTON_L2
  26. key 0x137 BUTTON_R2
  27. key 0x138 BACK
  28. key 0x139 BUTTON_START
  29. key 0x13a BUTTON_THUMBL
  30. key 0x13b BUTTON_THUMBR
  31.  
  32.  
  33. # Left (0x00, 0x01) and right (0x03, 0x05) analog control stick.
  34. # (Each axis has range from 0 to 255.)
  35. axis 0x00 X
  36. axis 0x01 Y
  37. axis 0x02 Z
  38. axis 0x05 RZ
  39.  
  40. # Hat.
  41. # (D-pad is reported as analog. Each axis has range from -1 to 1.)
  42. axis 0x10 HAT_X
  43. axis 0x11 HAT_Y
Advertisement
Add Comment
Please, Sign In to add comment