Mapping joystick - OpenMSX on Raspberry pi (Retropie)

By duff666

Supporter (5)

duff666's picture

15-10-2017, 14:02

Hi,
I've a USB joystick (12 buttons) and I'm mapping controls to not use keyboard.
I have modifed settings.xml and buttons work fine (thanks to the information I have seen in this forum), but my problem is with directions joystick. LEFT and RIGHT are working fine, but UP and DOWN not respond. I had the same problem with default setup.

My question is. Can I mapping UP and DOWN?
I don't know how to use this sentence in settings.xml
joy axis Axis of joystick got value

Thanks and sorry for my poor english

Login or register to post comments

By Manuel

Ascended (13473)

Manuel's picture

15-10-2017, 23:52

Can you show all your bindings you have now?

Use this command to show the config: set joystick1_config

Perhaps this thread helps: https://www.msx.org/forum/msx-talk/openmsx/need-a-little-hel...

By duff666

Supporter (5)

duff666's picture

16-10-2017, 23:15

Hi,
I don't know how to use command "set joystick1_config", sorry

This is my configuration

bind key="joy1 button3 down" keymatrixdown 0 0x02
bind key="joy1 button3 up" keymatrixup 0 0x02
bind key="joy1 button4 down" keymatrixdown 0 0x04
bind key="joy1 button4 up" keymatrixup 0 0x04
bind key="joy1 button5 down" keymatrixdown 8 0x01
bind key="joy1 button5 up" keymatrixup 8 0x01
bind key="joy1 button8 down" exit
bind key="joy1 button9 down" toggle pause
bind key="joy1 button10 down" main_menu_toggle

By Manuel

Ascended (13473)

Manuel's picture

16-10-2017, 23:43

I don't see you bound something for LEFT and RIGHT...

To run that command, open the console (hit F10 on your keyboard) and type that command.

By Vampier

Prophet (2112)

Vampier's picture

17-10-2017, 02:30

Quibus we really should come up with some script to make mapping easier

By duff666

Supporter (5)

duff666's picture

17-10-2017, 19:36

thanks Manuel,
this is the result:

set joystick1_config
LEFT -axis0 RIGHT +axis0 UP -axis1 DOWN +axis1 A {button 0 button 2 button 4 button 6 button 8 button 10} B {button 1 button 3 button 5 button 7 button 9 button 11}

In Retroarch, for UP and DOWN, the configuration is -3 and +3. Can I change it in OpenMSX??

I continue investigating

By duff666

Supporter (5)

duff666's picture

17-10-2017, 20:24

UP and DOWN are working now!!!!!!

I have changed defaults by:
setting id="joystick1_config" LEFT -axis0 RIGHT +axis0 UP -axis3 DOWN +axis3 A {button0} B {button1}

and now the following doubt. I would like to save games (R-type is very difficult, jaja). With button10 I can open menu, but I can not move through the different options.

Tomorrow I will continue investigating how to move around the menu and I will test games that use more buttons (Metal Gear)

Thanks again. I will report the progress

By duff666

Supporter (5)

duff666's picture

23-10-2017, 23:31

Hi, my joystick is already configured correctly to play most games.

I only have one question left. Is it possible to save games from joystick?
With "main_menu_toggle" I can open the menu, but I don't know how to scroll through the options or select them. It's posible configure buttons for this actions?

saludos

My MSX profile