-
Notifications
You must be signed in to change notification settings - Fork 482
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
Add option to disable keybindings when running with display modes #340
Comments
Ah, after much digging I've found the '--no-input' flag. But it doesn't solve the problem of still allowing the sending of inputs programatically |
What would be the point of not allowing inputs from the API? Then the emulator can't do anything? |
Because you might want visuals and realtime interactions but don't want the default keyboard inputs at all. Like semi supervised learning for example! Say I want to use space bar to interrupt and take control it doesn't easily allow you to do that and record your own button pushes. The current implementation of pyboy allows for weird problems where you get double inputs if controlling the game programmatically and pressing keys, because you can't filter them without changing sdl plugin. |
Sounds like a too specific use-case to have built-in. You can come and join the Discord server if you want to discuss solutions. |
The solution is fairly straight forward, it would be altering this function to not be hardcoded: Having a config json or something for the button press mapping (which could also be blank) would solve #339 and #249 too. Sorry, I don't use discord, I prefer doing OS work in the most accessible places :) |
I'm offering you to come to Discord if you want any further help. I can't help everyone 1:1 on here. Also, others on Discord have used the API to implement more or less what you're asking for. |
if anyone stumbles across this in the future you can just monkey patch and it avoids a lot of issues that occur from the global use of SDL events
|
Similar to #339 and #249
Im currently doing some debugging and it's very annoying to have the keybindings affecting the game state when I don't want them to! It would be great to have a simple way to have an SDL or OpenGL window but with the inputs disabled.
The text was updated successfully, but these errors were encountered: