mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-02-23 18:29:11 +00:00
Better calibration extremes
This commit is contained in:
parent
e104ad9cb3
commit
d2215b0f0b
@ -160,10 +160,10 @@ static void c_calibrate_pc_joystick()
|
|||||||
while (c_mygetch(1) == -1) { }
|
while (c_mygetch(1) == -1) { }
|
||||||
|
|
||||||
/* reset all the extremes */
|
/* reset all the extremes */
|
||||||
js_max_x = -1;
|
js_max_x = INT_MIN;
|
||||||
js_max_y = -1;
|
js_max_y = INT_MIN;
|
||||||
js_min_x = MAXINT;
|
js_min_x = INT_MAX;
|
||||||
js_min_y = MAXINT;
|
js_min_y = INT_MAX;
|
||||||
|
|
||||||
/* open joystick device if not open */
|
/* open joystick device if not open */
|
||||||
if (js_fd < 0)
|
if (js_fd < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user