drfiemost / Hurrican

A fork of Hurrican, freeware jump and shoot game created by Poke53280, with SDL2 enabled by default, support for libopenmpt and CRT simulation
MIT License
7 stars 2 forks source link

Incorrect dpad/button ID's with gamepad control #8

Closed s1eve-mcdichae1 closed 2 years ago

s1eve-mcdichae1 commented 2 years ago

With gamepad control enabled, the instructions in the tutorial level, that (presumably) should read, for example:

"You can move left and right by pressing 'Joypad left' or 'Joypad right'. You can crouch by pressing 'Joypad down'."

...instead render as:

"You can move left and right by pressing 'Joypad left' or 'Joypad leftJoypad right'. You can crouch by pressing 'Joypad leftJoypad rightJoypad down'."

This extends to all the action buttons as well, for example "Press 'button 2' to fire" becomes "Press 'Joypad leftJoypad rightJoypad downJoypad upJoypad downbutton 1button 2' to fire." Note: "down-up-down," presumably because in the control setup they're listed "...crouch (down), look up (up), look down (down again), ...".

Issue not present with keyboard control, keys such as "Right", "Down", "Left Alt" render correctly.

drfiemost commented 2 years ago

Should be fixed, please check.

s1eve-mcdichae1 commented 2 years ago

Looks good, thanks!