Remap joystick buttons

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
Angelus3K
Posts: 79
Joined: Sat Nov 19, 2005 2:48 pm

Remap joystick buttons

Post by Angelus3K »

Hi,

I'm running ScummVM on a Raspberry Pi using a PS3 controller connected via Bluetooth. All works fine by using --joystick=0 on the command line.

My problem is that left mouse click is mapped to the select button. Mouse movement works great on the left analogue stick but is awkward by having to left click using the select button...

Is there anyway to remap the joystick buttons so I can have left click on X and right click on O etc?

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

Post by digitall »

This is out of the scope of ScummVM.

Based on a quick Google, you need to do this by correctly setting up the configuration in qtsixa:
http://qtsixa.sourceforge.net/manual.pdf
Angelus3K
Posts: 79
Joined: Sat Nov 19, 2005 2:48 pm

Post by Angelus3K »

Thanks for the reply. I might just go and buy a usb Bluetooth mouse and keyboard.

I don't know how hard it would be but a button map option would be nice but maybe it doesn't work that way since it's an interpreter and not an emulator.

Would be nice to customise game controls though.
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

Interpreter vs. Emulator is totally irrelevant.

The point here is that we _could_ provide a way to internally remap the Joystick buttons and axis, but I don't think the team have considered it a good idea.

We basically use the events from the libSDL v1.2 Joystick API, which _should_ pass the mapping straight from the Operating System specific API, which is where a remapping of buttons should be done:
http://www.libsdl.org/release/SDL-1.2.1 ... stick.html

There is already several places to do this and having yet another remapper creates another place to get buttons mixed up... See here:
https://wiki.archlinux.org/index.php/jo ... controller
Post Reply