Gamepad cursor

Par jepmsx

Expert (66)

Portrait de jepmsx

27-03-2020, 11:23

Hi!

I use this gamepad in OpenMSX

When I choose the option joystick in the games, the leftmost stick is the one that works. I was wondering if there is a way also to use the arrows of the gamepad.

!login ou Inscrivez-vous pour poster

Par Manuel

Ascended (18092)

Portrait de Manuel

27-03-2020, 19:15

On my Rumblepad I can press the mode button on the joypad itself to switch to the D-pad...

Par jepmsx

Expert (66)

Portrait de jepmsx

28-03-2020, 12:12

Thanks for the information.
I was wondering if openmsx has a mapping of keys. Thus I would discover the signal sent by D-pad and map it.

Par Manuel

Ascended (18092)

Portrait de Manuel

28-03-2020, 15:40

With the bind command it should be possible to do some mapping. But it's not really easy. You can try to find out which events end up in openMSX when pressing these buttons.

Try this in the console:

proc dump_event { args } { puts "Event: $args" }
bind "joy1 button" -event dump_event
bind "joy1 axis" -event dump_event
bind "joy1 hat" -event dump_event

and then press whatever you want on your joypad. You'll then see which events are received when doing which action on the joypad.

These can then be used with bind commands to map to other things.