Closed ghost closed 7 years ago
Do you have a controller plugged in by any chance? In that case joystick mode would be enabled at launch, and you could switch back to keyboard mode using Ctrl+K.
No, just keyboard and mouse.
Sometimes SDL2 can detect Touchpad as a joystick.
I see. It didn't seem to work with a normal mouse, though, nor a keyboard.
So, do the arrow keys work after you press Ctrl+K?
Yeah. My fault for forgetting this! :D
Maybe I should add an option to SDLPoP.ini that can disable automatic joystick mode at startup? Ctrl+J would still switch to that mode, of course.
Or, some way to automatically switch if you start using the other input method? I.e. the other input method would also be polled, but that input would usually be discarded unless it's detected that the input method should be switched.
Or, some way to automatically switch if you start using the other input method?
Now, that's even better. Autodetection is usually better than manual configuration. I'll try that today.
Or, some way to automatically switch if you start using the other input method?
Here is my first attempt on a new branch: https://github.com/NagyD/SDLPoP/commits/auto_input_mode I'd like you to test it because I don't have a gamepad or a joystick.
OK! That's nice! I just tested it with the Xbox 360 controller. The autodetection works! Some quirks:
Neither the arrows keys nor the WASD keys do anything. Or did you set different default controls?