Difference between revisions of "Joy2key"

From ArchWiki
Jump to: navigation, search
m (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...")
 
m
Line 1: Line 1:
**DRAFT**
+
[DRAFT]
 
+
====Getting Logitech Cordless RumblePad 2 "hat" (aka d-pad) to work with XBMC.====
Getting Logitech Cordless RumblePad 2 "hat" (aka d-pad) to work with XBMC.
+
<br>
 
+
XBMC 10.0 or maybe a recent Arch update broke this. Now xbmc.log shows 0 hats:
NOTES:
+
17:00:36 T:3020363648 M:1703337984  NOTICE: Enabled Joystick: Logitech Logitech Cordless RumblePad 2
XBMC 10 or maybe a recent Arch update broke this.
+
17:00:36 T:3020363648 M:1703337984  NOTICE: Details: Total Axis: 6 Total Hats: 0 Total Buttons: 12
 
+
<br>
xbmc.log shows 0 hats:
+
Solution: Install joy2key from AUR. My config:
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
+
# ~/.joy2keyrc
 
+
#
SOLUTION:
+
Install joy2key from AUR.
+
COMMON
 
+
-dev /dev/input/js0
#
+
-thresh -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383
# ~/.joy2keyrc
+
#-autorepeat 5
#
+
#-deadzone 50
 
+
COMMON
+
START xbmc
-dev /dev/input/js0
+
-X
-thresh -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383
+
# -axis <axis0min> <axis0max> <axis1min> <axis1max> ...
#-autorepeat 5
+
#      0 = left analog [Left Right]
#-deadzone 50
+
#      1 = left analog [Up Down]
 
+
#      2 = right analog [Left Right]
START xbmc
+
#      3 = right analog  [Up Down]
-X
+
#      4 = hat (d-pad) [Left Right]
# -axis <axis0min> <axis0max> <axis1min> <axis1max> ...
+
#      5 = hat (d-pad) [Up Down]
#      0 = left analog [Left Right]
+
#
#      1 = left analog [Up Down]
+
# actions: Left/Right/Up/Down (arrows) - first letter capital!
#      2 = right analog [Left Right]
+
#          plus/minus (ASCII characters) - lower case!
#      3 = right analog  [Up Down]
+
# ....0..........1.......2..........3..........4..........5......
#      4 = hat (d-pad) [Left Right]
+
-axis Left Right Up Down Left Right plus minus Left Right Up Down
#      5 = hat (d-pad) [Up Down]
+
#
+
# EoF
# actions: Left/Right/Up/Down (arrows) - first letter capital!
+
<br>
#          plus/minus (ASCII characters) - lower case!
+
My config for standalone XBMC:
# ....0..........1.......2..........3..........4..........5......
+
#
-axis Left Right Up Down Left Right plus minus Left Right Up Down
+
# ~/.xinitrc
 
+
#
# EoF
+
 
+
# Enable Ctrl+Alt+Bksp.
***
+
setxkbmap -option terminate:ctrl_alt_bksp &
 
+
#
+
# After a delay, start joy2key with XBMC config.
# ~/.xinitrc
+
(sleep 3 && joy2key "XBMC Media Center" -config xbmc) &
#
+
 
+
# Start XBMC.
# Enable Ctrl+Alt+Bksp.
+
ck-launch-session xbmc-standalone --nolirc
setxkbmap -option terminate:ctrl_alt_bksp &
+
 
+
# EoF
# After a delay, start joy2key with XBMC config.
+
(sleep 3 && joy2key "XBMC Media Center" -config xbmc) &
+
 
+
# Start XBMC.
+
ck-launch-session xbmc-standalone --nolirc
+
 
+
# EoF
+

Revision as of 23:15, 10 March 2011

[DRAFT]

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


XBMC 10.0 or maybe a recent Arch update broke this. Now 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. My config:

#
# ~/.joy2keyrc
#

COMMON
-dev /dev/input/js0
-thresh -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16383 16383
#-autorepeat 5
#-deadzone 50

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

# EoF


My config for standalone XBMC:

#
# ~/.xinitrc
#

# Enable Ctrl+Alt+Bksp.
setxkbmap -option terminate:ctrl_alt_bksp &

# After a delay, start joy2key with XBMC config.
(sleep 3 && joy2key "XBMC Media Center" -config xbmc) &

# Start XBMC.
ck-launch-session xbmc-standalone --nolirc

# EoF