What's new

Assign Analog Stick to hat?

Mumbo-Jumbo

New member
Well, i think the title says it all:
I use a gamepad that doesn't provide X/Y axis but only an hat.
Is there a way i can assign the Analog Stick directions on this hat with the SDL Input plugin?
Something like "Y Axis Up=hat(0, Up)"?

Thanks in advance
 

Richard42

Emulator Developer
Yes, here is a wiki page which documents the plugin parameters:

http://mupen64plus.retrouprising.com/mediawiki/index.php?title=Mupen64Plus_Plugin_Parameters

The only limitation is that a single axis (X or Y) cannot use 2 different hats for different directions. You would probably never want to do this anyway. To set it up to use a single hat (number 0) in the obvious mapping, you would configure it like this:

X Axis = hat(0 Left Right)
Y Axis = hat(0 Up Down)
 

Top