Guest User

Wireless_Controller.kl

a guest
Apr 13th, 2016
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 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. # Sony Dualshock 4
  17. #
  18.  
  19. key 305 BUTTON_A # Cross
  20. key 306 BUTTON_B # Circle
  21. key 304 BUTTON_X # Square
  22. key 307 BUTTON_Y # Triangle
  23. key 308 BUTTON_L1 # L1
  24. key 309 BUTTON_R1 # R1
  25. key 310 BUTTON_L2 # L2
  26. key 311 BUTTON_R2 # R2
  27. key 312 BUTTON_SELECT # Select / Share
  28. key 313 BUTTON_START # Start / Options
  29. key 316 HOME # PS Home
  30. key 314 BUTTON_THUMBL # L3
  31. key 315 BUTTON_THUMBR # R3
  32. key 317 BACK # Touchpad Press
  33.  
  34. # Left and right stick.
  35. axis 0x00 X flat 0
  36. axis 0x01 Y flat 0
  37. axis 0x02 Z flat 0
  38. axis 0x05 RZ flat 0
  39.  
  40. # Triggers.
  41. axis 0x09 GAS
  42. axis 0x0a BRAKE
  43.  
  44. # Hat.
  45. axis 0x10 HAT_X
  46. axis 0x11 HAT_Y
Advertisement
Add Comment
Please, Sign In to add comment