You are not logged in.
How can I map commands (such, uname -a for example) to the buttons on my controller?
So far, I've gotten xf86-input-joystick to work with the following in my xorg.conf
Section "InputDevice"
Identifier "Dualshock2"
Driver "joystick"
Option "Device" "/dev/input/js0"
EndSection
and the following in the ServerLayout section
InputDevice "Dualshock2" "SendCoreEvents"
But for some retarded reason, xorg just seems to consider my controller to be another mouse: I can move the pointer with the arrows, buttons 1, 2, and 3 act as mouse buttons, etc.
I know I set xorg.conf to map keyboard keys to separate buttons, but how do I map commands? For example, I want to map "mpc toggle" to the start button (button 9).
Offline
ok, I solved this myself
I just had to remap each button on the controller as another mouse button; for instance
Section "InputDevice"
Identifier "Dualshock2"
Driver "joystick"
Option "Device" "/dev/input/js0"
Option "MapButton1" "button=9"
Option "MapButton2" "button=10"
Option "MapButton3" "button=11"
Option "MapButton4" "button=12"
Option "MapButton5" "button=13"
Option "MapButton6" "button=14"
Option "MapButton7" "button=15"
Option "MapButton8" "button=16"
Option "MapButton9" "button=17"
Option "MapButton10" "button=18"
Option "MapButton11" "button=19"
Option "MapButton12" "button=20"
Option "MapButton13" "button=21"
Option "MapButton14" "button=22"
Option "MapButton15" "button=23"
Option "MapButton16" "button=24"
EndSection
so, that's that
from there I've been able to map each button to a command using xbindkeys
axis 1 (left stick) controlls the pointing, and the right stick seems to do scrolling
awesome
Offline
But for some retarded reason, xorg just seems to consider my controller to be another mouse: I can move the pointer with the arrows, buttons 1, 2, and 3 act as mouse buttons, etc.
That's what xf86-input-joystick is supposed to do. It's not necessary for normal joystick use. However, I don't know of a program that let's you set up joystick hotkeys off the top of my head, so what you've done with xbindkeys may be easiest.
Offline
There's also QJoyPad in AUR. It lets you bind gamepad buttons to keyboard and mouse buttons. You can save multiple layouts. Nice for gaming.
Offline