Replies: 1 comment 3 replies
-
The Since I used to mainly focus on game consoles those support joysticks only, it's enough for those simple scenarios. I have to admit simulating joystick input with keyboard input is not an ideal way to implement features like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The question is basically about implementing touch controls for platforms that used both keyboard and game controller (joystick), mainly 8/16-bit computers.
Is it possible to programmatically simulate game controller movements without sending key presses (keyboard keys) to the emulated machine? Currently the nostalgist.pressDown(), pressUp, and press methods cause the emulated computer to register both cursor key presses and the game joystick actions (default retroarchConfig). The list of keyboard keys that can be remapped is very limited (numpad, a-z etc.). And vice versa – when we only want to use the keyboard arrow controls, the joystick actions are also triggered (at least overriding the configuration with "nul" helps here, e.g., input_player1_up: 'nul'). At the same time, when I connect a BT/USB controller, I can see that only only game controller actions are being send to the emulated machine, not keyboard key presses, which is expected behaviour.
Is this an oversight (bug) in the current implementation of press/pressUp/pressDown, or am I doing something wrong (again)? :)
Beta Was this translation helpful? Give feedback.
All reactions