From 2d858c6e4a062a22f33d37cf08b4e5c25d649a91 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 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 --------- *) -- 2.29.2