Don't poll for joystick if none configured
This commit is contained in:
@@ -107,6 +107,8 @@ void joystick_process()
|
|||||||
{
|
{
|
||||||
int c, d;
|
int c, d;
|
||||||
|
|
||||||
|
if (!joystick_type) return;
|
||||||
|
|
||||||
SDL_JoystickUpdate();
|
SDL_JoystickUpdate();
|
||||||
for (c = 0; c < joysticks_present; c++)
|
for (c = 0; c < joysticks_present; c++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user