From: DeaDDooMER Date: Thu, 27 Jan 2022 19:35:30 +0000 (+0300) Subject: sdl2: do not declare touch state variables when disabled touch support X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=2d858c6e4a062a22f33d37cf08b4e5c25d649a91;p=d2df-sdl.git sdl2: do not declare touch state variables when disabled touch support --- diff --git a/src/game/sdl2/g_system.pas b/src/game/sdl2/g_system.pas index bc60586..97e346e 100644 --- a/src/game/sdl2/g_system.pas +++ b/src/game/sdl2/g_system.pas @@ -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 --------- *)