Skip to content

Commit

Permalink
Windows: "fix" weird crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasssadar committed Aug 30, 2012
1 parent 3d92b9b commit 0939cdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libenjoy_win32.c
Expand Up @@ -114,6 +114,9 @@ void libenjoy_enumerate(libenjoy_context *ctx)

// Without this, you have to replug joystick into the same USB port,
// but when it is enabled, joystick reads return nonsense
// FIXME: joyConfigChanged(0) causes WTF crashes in joyGetPosEx().
// Sometimes.
/*
{
char canRefresh = 1;
for(i = 0; canRefresh == 1 && i < ctx->joy_list.count; ++i)
Expand All @@ -122,7 +125,7 @@ void libenjoy_enumerate(libenjoy_context *ctx)
if(canRefresh == 1)
joyConfigChanged(0);
}
}*/

for (i = JOYSTICKID1; i < maxdevs && numdevs < LIBENJOY_MAX_JOYSTICK; ++i)
{
Expand Down

0 comments on commit 0939cdd

Please sign in to comment.