DEADSOFTWARE

sdl2: do not declare touch state variables when disabled touch support
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 27 Jan 2022 19:35:30 +0000 (22:35 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 27 Jan 2022 19:35:30 +0000 (22:35 +0300)
src/game/sdl2/g_system.pas

index 058a03b9c16980df7aafc7bc7b5db3482547f4da..abfbfb322dfebceeb83d4f5c9b99fd7ee204e6fb 100644 (file)
@@ -71,9 +71,11 @@ implementation
     JoystickHatState: array [0..e_MaxJoys - 1, 0..e_MaxJoyHats - 1, HAT_LEFT..HAT_DOWN] of Boolean;
     JoystickZeroAxes: array [0..e_MaxJoys - 1, 0..e_MaxJoyAxes - 1] of Integer;
 
+{$IFDEF ENABLE_TOUCH}
   var (* touch *)
     angleFire: Boolean;
     keyFinger: array [VK_FIRSTKEY..VK_LASTKEY] of Integer;
+{$ENDIF}
 
   (* --------- Graphics --------- *)