Joy2key

From ArchWiki
Revision as of 23:04, 10 March 2011 by MajorTom (Talk | contribs) (Created page with "**DRAFT** Getting Logitech Cordless RumblePad 2 "hat" (aka d-pad) to work with XBMC. NOTES: XBMC 10 or maybe a recent Arch update broke this. xbmc.log shows 0 hats: 17:00:36 T...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
    • DRAFT**

Getting Logitech Cordless RumblePad 2 "hat" (aka d-pad) to work with XBMC.

NOTES: XBMC 10 or maybe a recent Arch update broke this.

xbmc.log shows 0 hats: 17:00:36 T:3020363648 M:1703337984 NOTICE: Enabled Joystick: Logitech Logitech Cordless RumblePad 2 17:00:36 T:3020363648 M:1703337984 NOTICE: Details: Total Axis: 6 Total Hats: 0 Total Buttons: 12

SOLUTION: Install joy2key from AUR.

  1. ~/.joy2keyrc

COMMON -dev /dev/input/js0 -thresh -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383

  1. -autorepeat 5
  2. -deadzone 50

START xbmc -X

  1. -axis <axis0min> <axis0max> <axis1min> <axis1max> ...
  2. 0 = left analog [Left Right]
  3. 1 = left analog [Up Down]
  4. 2 = right analog [Left Right]
  5. 3 = right analog [Up Down]
  6. 4 = hat (d-pad) [Left Right]
  7. 5 = hat (d-pad) [Up Down]
  8. actions: Left/Right/Up/Down (arrows) - first letter capital!
  9. plus/minus (ASCII characters) - lower case!
  10. ....0..........1.......2..........3..........4..........5......

-axis Left Right Up Down Left Right plus minus Left Right Up Down

  1. EoF
  1. ~/.xinitrc
  1. Enable Ctrl+Alt+Bksp.

setxkbmap -option terminate:ctrl_alt_bksp &

  1. After a delay, start joy2key with XBMC config.

(sleep 3 && joy2key "XBMC Media Center" -config xbmc) &

  1. Start XBMC.

ck-launch-session xbmc-standalone --nolirc

  1. EoF