Main > Driving & Racing Cabinets

Sega Monaco GP 1979/1980 - My Remake

<< < (127/127)

janderclander14:

--- Quote from: geecab on May 05, 2026, 01:13:46 pm ---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.

--- End quote ---

Thanks. That's indeed a solution, but it may complicate control mapping, e.g., in MAME, because a button press will be reported as two, and any of them would end up being assigned. It may also require reconfiguring standard mappings to avoid interferences. At the end, the issue is that the cabinet is not exclusively devoted to MGPr, so I would prefer to keep a more standard input behavior.

Anyway, not a big deal, I can live not being able to map the hat :D I only asked because I found it strange that these inputs were not assignable.

geecab:
I understand what you are saying regarding complicating MAME's control mapping and its good to know you can live without the hat not working. Leave this one with me for a bit anyway (I've got a Teensy dev board somewhere, I can write a sketch for that and get a better idea of how to handle the hat events).

In a couple of weeks I should have the following going:
 - Allow exit MGPr by pressing a joystick button or mouse button or key (Previously, you could only define a specific key).
 - in-game volume up / volume down controls using joystick buttons or mouse buttons or keys.
 - Allow reset hiscores by holding a joystick button or mouse button or key (Previously, you could only define a specific key). I thought I'd add this for completeness so that MGPr would have no more 'keyboard-only' controls.

:)

Navigation

[0] Message Index

[*] Previous page

Go to full version