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=f0a9bf39a38819cc4e86b81d2daefc6b029ccb20;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 058a03b..abfbfb3 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 --------- *)