1st I tested the default driver with jstest and it showed that in my case hat button shows up as axis 4 and 5. Also verified that highest _used_ button number is 11. Then I coded a quick hack to the joysdev driver to replace axis 4 as buttons 12 and 13 and axis 5 as buttons 14 and 15.
My version of joydev.c (had to change extension to .txt to satisfy forum software) attached for brave and daring Linux gamers - remember to check what axis/button values you can use with jstest and the adapt the code to suit you.
Here's a makefile to compile it - spits out joydev.ko which is the loadable driver object
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Attached File(s)
-
joydev.txt (14.9K)
Number of downloads: 218

Sign In »
Register Now!
Help
Forum Portal
Forums - Home
Members
Blogs
Calendar
Org Chat
Contact Us


This topic is locked


















