Gamepad cursor

By jepmsx

Resident (37)

jepmsx's picture

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 or register to post comments

By Manuel

Ascended (16451)

Manuel's picture

27-03-2020, 19:15

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

By jepmsx

Resident (37)

jepmsx's picture

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.

By Manuel

Ascended (16451)

Manuel's picture

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.