--- uae/src/od-dos/joystick.c 2018/04/24 16:40:30 1.1 +++ uae/src/od-dos/joystick.c 2018/04/24 16:43:57 1.1.1.2 @@ -17,6 +17,7 @@ #include "custom.h" #include "joystick.h" +int nr_joysticks; int HasJoy0 = 0, HasJoy1 = 0; int minx0, maxx0, miny0, maxy0; int minx1, maxx1, miny1, maxy1; @@ -158,6 +159,8 @@ void init_joystick(void) { miny1 = JoyY - 2*JoyY/3; maxy1 = JoyY + 2*JoyY/3; } + + nr_joysticks = HasJoy0 + HasJoy1; } void close_joystick(void) {