Thread
:
[Announce] USB hostmode beta release
View Single Post
thp
2010-11-08 , 20:11
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#
84
Ok, I did not get my Logitech Rumblepad 2 to be detected, but I was able to get an older Sidewinder Gamepad (Freestyle Pro) to work in low speed mode and be available as normal joystick. Here's a small utility that will use SDL to read joystick input and convert it into keyboard events (the axes map to keyboard arrows, the buttons to different keys). Useful for playing emulator games with USB joysticks/gamepads:
http://thp.io/2010/maemo/jsthingie
(Source:
http://thp.io/2010/maemo/jsthingie.c
)
For now, only digital pads are supported (no analog joysticks due to the primitive logic that is used to determine direction for arrow keys) and you have to have SDL installed, uinput loaded (modprobe uinput) and you either have to give correct permissions to /dev/input/uinput or make sure that you run jsthingie as root.
Quote & Reply
|
The Following 9 Users Say Thank You to thp For This Useful Post:
ahmadamaj
,
cfh11
,
CutterSlade
,
maluka
,
MohammadAG
,
mveplus
,
OVK
,
sjgadsby
,
SubCore
thp
View Public Profile
Send a private message to thp
Visit thp's homepage!
Find all posts by thp