OR with ShuttlePro controller

14 views
Skip to first unread message

Christopher Peters

unread,
Dec 20, 2011, 9:19:23 AM12/20/11
to openr...@googlegroups.com
Does OR natively support the Contour Designs ShuttlePro v2 controller, or am I going to have to hack something together?  :)

KP

--
Kit Peters (W0KEH), Engineer II
KMOS TV Channel 6 / KTBG 90.9 FM
University of Central Missouri
http://kmos.org/ | http://ktbg.fm/

Andrew Armenia

unread,
Dec 20, 2011, 11:23:20 AM12/20/11
to openr...@googlegroups.com
The new HD version (in exavideo/exacore) supports the controller natively via input/evdev.cpp and input/shuttlepro.rb, but it doesn't use the SDL library for accessing input devices like the SD version. There's a good chance that SDL will recognize the controller as a joystick, though. This will make hacking something together relatively straightforward.

If you have the controller plugged in, starting sdl_gui may or may not produce a "No joystick found..." message in the console. If it doesn't (that is, it recognizes the controller as a joystick), you can probably start your hacking around line 1053 of sdl_gui.cpp. That code allows actions to be mapped to joystick buttons; there should also be some code in there for mapping seeking to a joystick axis.

If it doesn't recognize the controller as a joystick, you'll have to come up with a way of reading the controller events from /dev/input/event* directly; the input code in the exavideo repository could be a starting point for that.

-Andrew
Reply all
Reply to author
Forward
0 new messages