From f0a9bf39a38819cc4e86b81d2daefc6b029ccb20 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Thu, 27 Jan 2022 22:35:30 +0300 Subject: [PATCH] sdl2: do not declare touch state variables when disabled touch support --- src/game/sdl2/g_system.pas | 2 ++ 1 file changed, 2 insertions(+) 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 --------- *) -- 2.29.2