Raspberry Pi Joystick

Discussion about other and unofficial ports of ScummVM

Moderator: ScummVM Team

Post Reply
JoyBuzzer
Posts: 2
Joined: Mon May 20, 2013 6:09 am

Raspberry Pi Joystick

Post by JoyBuzzer » Mon May 20, 2013 6:15 am

I am not sure how to add joystick support to my rpi's scummvm. Any help would be appreciated.

User avatar
md5
ScummVM Developer
Posts: 2258
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 » Mon May 20, 2013 7:10 am

Joystick support? Can you be more specific? What kind of devices are you referring to? If you're talking about regular joysticks, we don't really support them, they're quite cumbersome for playing adventure games

digitall
ScummVM Developer
Posts: 952
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall » Mon May 20, 2013 2:24 pm

If your joystick is appearing as a standard Linux Joystick device i.e. if /dev/input/js0 exists, then it should be available via SDL: http://www.libsdl.org/docs/html/joystick.html and thus ScummVM can use it.

However as md5 indicated, Joysticks are a bit cumbersome for adventure games so we don't enable them by default. If you read section 5.1 of the README, to enable them, you need to pass the command line option --joystick to scummvm (Optionally this takes the number of the joystick i.e. if you have several devices js0, js1 etc.)

tl;dr: Assuming that you are using a USB Joypad/stick or an Analogue joystick via a USB Gameport on your RPi, try running "scummvm --joystick" and see if this then works...

JoyBuzzer
Posts: 2
Joined: Mon May 20, 2013 6:09 am

Post by JoyBuzzer » Tue May 21, 2013 12:56 am

Thanks. I added "joystick_num=0" to .scummvmrc and got my usb joystick controller to work in my retropie build. I know the controller is no ideal but I am trying to operate my retropie with my controller as much as possible. Thanks again.

Jez_Gafys
Posts: 6
Joined: Thu Oct 23, 2008 1:42 pm

Post by Jez_Gafys » Mon Mar 16, 2015 10:57 am

hmm weird my xbox 360 pads (wireless) work fine in the scumm launcher and games using the pi I didn't have to do any thing they just work (using ES).

digitall
ScummVM Developer
Posts: 952
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall » Tue Mar 17, 2015 12:01 pm

https://wiki.archlinux.org/index.php/Ga ... ontrollers

Those controllers appear as evdev event devices for X Windows, so will appear as a Mouse, rather than a Joystick to libSDL and thus ScummVM.

Post Reply