Advertisement
Meneer_Jansen

Add Atar CX40+ Wireless to TheC64

Mar 17th, 2025 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. https://pastebin.com/xcbAKXqC
  2.  
  3.  
  4. Add the Atari CX40+ Wireless joystick to TheC64 Maxi
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6.  
  7.  
  8. Dmesg:
  9.  
  10. hid-generic 0003:0E6A:4011.0014: input,hidraw3: USB HID v1.11 Gamepad [ Retro Games LTD Atari CX Wireless Controller]
  11.  
  12. This becomes (omit the .0014 and note the USB version 1.11):
  13.  
  14. 0003:0E6A:4011 0111
  15.  
  16. Low byte/high byte swap:
  17.  
  18. 0300 6A0E 1140 1101
  19.  
  20. Append 0000:
  21.  
  22. 0300 0000 6A0E 0000 1140 0000 1101 0000
  23.  
  24. Remove spaces:
  25.  
  26. 030000006A0E00001140000011010000
  27.  
  28. Change case (!)
  29.  
  30. 030000006a0e00001140000011010000
  31.  
  32. Check if it's 32 digits
  33.  
  34. 1 2 3
  35. 12345678901234567890123456789012
  36.  
  37. Mapping of axis/button:
  38.  
  39. _________________________________________________________
  40. gamecontrollerdb: Linux: Atari CX wireless joystick:
  41. _________________________________________________________
  42. leftx a0 Joy x-axis
  43. lefty a1 Joy y-axis
  44. lefttrigger b0 Fire button
  45. _________________________________________________________
  46.  
  47. Example:
  48.  
  49. Firebutton:
  50.  
  51. lefttrigger:b0
  52. ^ ^
  53. | |_____ Linux (button number 0)
  54. |
  55. |_____________ gamecontrollerdb.txt (SDL2 terminology?)
  56.  
  57.  
  58. For /media/the64/ui/data/gamecontrollerdb.txt this becomes:
  59.  
  60. 030000006a0e00001140000011010000, Retro Games LTD Atari CX Wireless Controller,leftx:a0,lefty:a1,lefttrigger:b0,platform:Linux,
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement