GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ff3152
)
sdl2: do not declare touch state variables when disabled touch support
author
DeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 27 Jan 2022 19:35:30 +0000
(22:35 +0300)
committer
DeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 07:57:27 +0000
(10:57 +0300)
src/game/sdl2/g_system.pas
patch
|
blob
|
history
diff --git
a/src/game/sdl2/g_system.pas
b/src/game/sdl2/g_system.pas
index bc60586efecc3ccee0b8fecc7421d4bd3256ae59..97e346e9005950ed3a9d98fe5b1e9abf34ace1fe 100644
(file)
--- 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 --------- *)
DEADSOFTWARE 2012-2025