snesrev / smw

Smw
https://discord.gg/AJJbJAzNNJ
Other
406 stars 38 forks source link

Optional Gamepad Background Input #11

Closed ChristianSilvermoon closed 10 months ago

ChristianSilvermoon commented 1 year ago

What feature do you want to get added? And how it will work?

In a number of games it is possible to enable a Background Input setting so that the game can still be controlled while it is not the currently focused application.

I believe this is possible with SDL2.

This is a really useful feature for multitasking, for example with multiple monitors, so that the keyboard can be used elsewhere quickly, while the gamepad continues to control the game.

FitzRoyX commented 11 months ago

In a number of games it is possible

I can't even find any on google, just a few emulators. Blocking inputs outside of focus is pretty standard behavior. You'd have to wipe every keyboard binding in the ini to avoid conflicts and then have a second person playing mario on a gamepad while you were typing for this to even make a shred of sense.

ChristianSilvermoon commented 11 months ago

I can't even find any on google, just a few emulators.

  • TheXTech has support for Background Input and is not an Emulator.

You'd have to wipe every keyboard binding in the ini to avoid conflicts

Hotkeys should not activate while the window is not in focus; only gamepad input. Even for things that do support Background Input, Hotkeys don't usually function while out of focus. Only the gamepad.

second person playing mario on a gamepad while you were typing for this to even make a shred of sense.

The point is to remove the inconvenience of having to click or alt-tab back into the window to control the game; often if gaming with a controller you're using exclusively the controller to communicate with the game. It's more convenient to simply pick up your controller and continue.

Additionally, a second person could be playing the game while someone else on the same computer is doing something else, that actually is a very real possibility.