CroMagRally icon indicating copy to clipboard operation
CroMagRally copied to clipboard

D-PAD Support for Steer Left & Steer Right

Open Iainrach opened this issue 8 months ago • 2 comments

First of all thanks - loved to play Bugdom & CroMag Rally with my young boys who are all young men now of course !

I'm using PS4 controller under Windows. The PS4 controller works for all my other Windows games so I'm assuming that's not the problem.

I've mapped the D-Pad Left & Right buttons to Steer Left & Steer Right under Gamepad settings in addition to LS Left & LS Right. The Thumbstick controls work perfectly, but whatever I try, I can't get the D-Pad controls to steer using the PS4 controller and my Windows version of the game.

Clearly this isn't a major problem under Windows but I've a feeling this could be the same problem that won't allow me to turn Left & Right using the Portmaster CroMagRally port on my Stick-less handheld which just has a D-pad.

Nanosaur 2 works perfectly on my handheld :)

I did try to do some research to understand the problem by analyzing any differences between CroMag & Nanosaur 2 in the key defaults - I'm not sure if this is at all relevant but thought I would at least mention .....

CroMag [kNeed_Left] = { .key = { SDL_SCANCODE_LEFT, SDL_SCANCODE_A }, .pad = { GAMINUS(LEFTX) }, },

[kNeed_Right] =
{
	.key = { SDL_SCANCODE_RIGHT, SDL_SCANCODE_D },
	.pad = { GAPLUS(LEFTX) },
},

Nanosaur 2 [kNeed_YawLeft] = { .key = { SDL_SCANCODE_LEFT, SDL_SCANCODE_A }, .pad = { GAMINUS(LEFTX), GB(DPAD_LEFT) }, },

[kNeed_YawRight] =
{
	.key = { SDL_SCANCODE_RIGHT, SDL_SCANCODE_D },
	.pad = { GAPLUS(LEFTX), GB(DPAD_RIGHT) },
},

Iainrach avatar Apr 23 '25 17:04 Iainrach

Good catch! That was a bug in the input handling code. Digital gamepad buttons actually had no effect on steering. See if this build works better for you: https://github.com/jorio/CroMagRally/actions/runs/14627417212

jorio avatar Apr 23 '25 20:04 jorio

Works Perfectly - Many Thanks !!

Iainrach avatar Apr 23 '25 23:04 Iainrach