turican0 / remc2

Recode Binary code of game Magic Carpet2 to C/C++ language(remake MC2 for any platform)
GNU General Public License v3.0
111 stars 11 forks source link

add joystick support #188

Closed rodan closed 1 year ago

rodan commented 1 year ago

add generic SDL joystick support that acts as a mouse-emulator

the user does not need to select joystick/mouse input device in the main menu, the joystick init is attempted during the game start sequence.

what works:

you might find the sub_main() changes a bit intrusive or plain wrong, but I need a way to tell in joystick_event_mgr() if I'm currently in flight mode or menu navigation mode.

as it's done now, if anyone is requesting VGA_Set_mouse() with exact 320,240 coords then I consider I'm in flight mode. all I can say it works great for me :)

also changed the README for an install method that does not require inno.., gog, dosemu software. also provided a list of hashes with which the user can check if the upstream files are correct.

cheers, peter

rodan commented 1 year ago

I will resend the push request with the joystick-related modification separate from the README change. found a bug where the yaw speed is halved after the spell menu is displayed the first time. brb.