-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo mode can't be stopped with using only gamepads / joysticks #499
Comments
Unfortunately I don't have a handheld or gamepad to test this with. Can you copypaste your mappings from the config file, and the start of the logfile (from start until "--- BEGIN GAME LOG ---") ? |
i could not control the game initially (no keyboard) but i knew the name of gamepad so edited the config to only change the
i also provided a gamecontrollerdb.txt file in share/games/openomf containing these values
requested log entry:
|
I looked through the code, and found the issue, the ESCAPE key in demo is handled here but only explicit keyboard input is handled here no gamepad at all and thats why you can not exit demo if using gamepads / joysticks only. see openomf/src/game/scenes/arena.c Line 1036 in 05ade32
|
Right. This issue is due to the normal input code only accepting escape input from player one. Since player one is a computer in demo mode, this hack was added to get out (when using keyboard). There was no similar out added for game controllers. To fix, this requires changes to arena_handle_events(). Another ticket to backlog. |
Hi,
It would seem demo mode where the cpu's fight each other, can't be stopped if the only input device is a game pad / joystick.
I don't know if this was also the case in the original game, but i though i'd mention it. I was testing using latest git on a RG35XX handheld which only had gamecontroller support (i edited the conf files to be able to control game) but it seems at least the demo mode i can't seem to exit using a gamecontroller only
The text was updated successfully, but these errors were encountered: