Main > Driving & Racing Cabinets
Sega Monaco GP 1979/1980 - My Remake
geecab:
Hi janderclander14!
Thanks for clearing that up about the hat dpad thing. I think MGPr might be recognizing your hat controls as another analog axis for an additional joystick. Not sure if you've tried this, but if you go through all the "steering_device" options, do you see any hat controls for any joystick? If you do, and you select it, then when you play the game does moving the hat have any affect on the steering? I know you most probably don't want to steer with the hat, but it would be a good test to confirm that MGPr is seeing the hat movement in some form.
Just a couple of other questions, what game controls did you want to map the hat to? And also what type/make of joystick do you have (Just out of interest)?
>>Thanks a lot for considering this!
No worries, I've made a start on it! :)
geecab:
Hi janderclander14,
I'm having second thoughts about modifying MGPr to support combinations of keys/buttons to trigger specific inputs. It will just make the in-game configuration menu too complex.
Just wondering, have you looked into the free "antimicrox" tool? Its specifically designed to map all imaginable combinations of gamepad axis and buttons to keyboard keys. I've installed it on Linux, its got a nice front end, its available to Raspberry Pi also...
:)
janderclander14:
--- Quote from: geecab on May 03, 2026, 04:54:22 pm ---Thanks for clearing that up about the hat dpad thing. I think MGPr might be recognizing your hat controls as another analog axis for an additional joystick. Not sure if you've tried this, but if you go through all the "steering_device" options, do you see any hat controls for any joystick? If you do, and you select it, then when you play the game does moving the hat have any affect on the steering? I know you most probably don't want to steer with the hat, but it would be a good test to confirm that MGPr is seeing the hat movement in some form.
Just a couple of other questions, what game controls did you want to map the hat to? And also what type/make of joystick do you have (Just out of interest)?
--- End quote ---
I'm using an arduino leonardo with the Joystick library and a xbox controller-like layout: 1 dpad/hat, 4 analog axes, and several buttons. The arduino also reports as a mouse, where the mouse X axis is read from a rotary encoder. All axes and buttons, including the dpad, work fine in emulators and the emulationstation frontend installed in the same machine.
In the ingame menu, the steering_device option shows mouse x, mouse y and the four analog axis (but not hat or digital directions, which are reported as a digital 'hat'). For the remaining 'digital' devices (gear, coin, start), it cycles through mouse button numbers and the joystick buttons, but not the dpad/hat. Being the latter a digital input, I was expecting to be able to map any of the directions (up/down/left/right) to any fo the digital devices. For example, mapping gear_change_device to 'hat_up' or, if a volume_device is added, map volume up/down to the up/down hat.
My current config file regarding control is a follows:
CONTROL steering_device "mouse axis x"
CONTROL accelerator_device "arduino llc arduino leonardo stick 2 x"
CONTROL gear_change_device "arduino llc arduino leonardo b2"
CONTROL coin_a_device "arduino llc arduino leonardo b3"
CONTROL start_device "arduino llc arduino leonardo b 4".
janderclander14:
--- Quote from: geecab on May 04, 2026, 11:37:32 am ---Hi janderclander14,
I'm having second thoughts about modifying MGPr to support combinations of keys/buttons to trigger specific inputs. It will just make the in-game configuration menu too complex.
Just wondering, have you looked into the free "antimicrox" tool? Its specifically designed to map all imaginable combinations of gamepad axis and buttons to keyboard keys. I've installed it on Linux, its got a nice front end, its available to Raspberry Pi also...
:)
--- End quote ---
I understand and yes, I'm familiar with it.
I'm also perfectly fine with no combinations of keys. Just being able to map the inputs I currently don't use (such as the dpad/hat I was mentioning above) to these special functions, or that all functions can be maped to a joystick, rather than being keyboard-exclusive, is more than enough!
geecab:
Hi janderclander14,
I think I see what is missing from my code which is the reason for hat devices not showing up. I probably need to get myself an Arduino Leonardo board to ensure this gets implemented correctly.
Have you considered modifying your arduino sketch to trigger button presses when the hat is moved (This is in addition to the "setHat" stuff I believe your sketch currently does)? So basically, when you move the hat whilst playing MGPr you will be able to detect a button press... And when you move the hat whilst running your emulationstation frontend you'll still be able to detect the hat movement the old way too.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version