mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-12 06:29:58 +00:00
HACK : fix a test suite breakage caused by joystick button reset delay
This commit is contained in:
parent
7b3eabb12f
commit
70e203303e
@ -284,9 +284,15 @@ void c_joystick_reset(void)
|
|||||||
joydriver_resetJoystick();
|
joydriver_resetJoystick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if TESTING
|
||||||
|
// For "testdisk" determinism, these need to be reset immediately
|
||||||
|
joy_button0 = 0x0;
|
||||||
|
joy_button1 = 0x0;
|
||||||
|
#else
|
||||||
pthread_t pid;
|
pthread_t pid;
|
||||||
pthread_create(&pid, NULL, (void *)&_joystick_resetDelayed, (void *)NULL);
|
pthread_create(&pid, NULL, (void *)&_joystick_resetDelayed, (void *)NULL);
|
||||||
pthread_detach(pid);
|
pthread_detach(pid);
|
||||||
|
#endif
|
||||||
|
|
||||||
joy_x = HALF_JOY_RANGE;
|
joy_x = HALF_JOY_RANGE;
|
||||||
joy_y = HALF_JOY_RANGE;
|
joy_y = HALF_JOY_RANGE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user