mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 22:05:38 +00:00
Allow joystick to be fetch if windows has no focus in SDL input mode.
This is usefull for multiple instance of supermodel networked on the same machine.
This commit is contained in:
parent
f7dcc1c445
commit
5fa190490d
|
@ -192,6 +192,11 @@ void CSDLInputSystem::OpenJoysticks()
|
||||||
int numHapticAxes = 0;
|
int numHapticAxes = 0;
|
||||||
int possibleEffect = 0;
|
int possibleEffect = 0;
|
||||||
|
|
||||||
|
//allow joystick to be fetch if windows has no focus.
|
||||||
|
//this is usefull for multiple instance networked on the same machine
|
||||||
|
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||||
|
|
||||||
|
|
||||||
for (int joyNum = 0; joyNum < numJoys; joyNum++)
|
for (int joyNum = 0; joyNum < numJoys; joyNum++)
|
||||||
{
|
{
|
||||||
numHapticAxes = 0;
|
numHapticAxes = 0;
|
||||||
|
|
Loading…
Reference in a new issue