diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 661d99f6986dad84ceaab0a2f96e56d8e064b984..dea1ca3a37b144e754637d37282bc945e2089566 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
g_dbg_scale: Single = 1.0;
r_pixel_scale: Single = 1.0;
g_dbg_scale: Single = 1.0;
r_pixel_scale: Single = 1.0;
+ gwin_has_stencil: Boolean = false;
+ gwin_k8_enable_light_experiments: Boolean = false;
+ g_dbg_aimline_on: Boolean = false;
+ g_dbg_input: Boolean = False;
+
+ var (* touch *)
+ g_touch_enabled: Boolean = False;
+ g_touch_size: Single = 1.0;
+ g_touch_offset: Single = 50.0;
+ g_touch_fire: Boolean = True;
+ g_touch_alt: Boolean = False;
+
{--- Read-only dirs ---}
GameWAD: string;
DataDirs: SSArray;
{--- Read-only dirs ---}
GameWAD: string;
DataDirs: SSArray;
{$IFDEF USE_SDL2}
SDL2,
{$ENDIF}
{$IFDEF USE_SDL2}
SDL2,
{$ENDIF}
- e_log, e_input, g_console, g_window, g_sound, g_gfx, g_player, Math,
+ e_log, e_input, g_console, g_sound, g_gfx, g_player, Math,
g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game,
g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game,
- g_items, wadreader, g_touch, envvars, g_system;
+ g_items, wadreader, envvars;
var
machine: Integer;
var
machine: Integer;
conRegVar('g_save_stats', @gSaveStats, '', '');
conRegVar('g_screenshot_stats', @gScreenshotStats, '', '');
conRegVar('g_lastmap', @gsMap, '', '');
conRegVar('g_save_stats', @gSaveStats, '', '');
conRegVar('g_screenshot_stats', @gScreenshotStats, '', '');
conRegVar('g_lastmap', @gsMap, '', '');
+
+ conRegVar('d_input', @g_dbg_input, '', '');
+
+ (* touch *)
+ conRegVar('touch_enable', @g_touch_enabled, 'enable/disable virtual buttons', 'draw buttons');
+ conRegVar('touch_fire', @g_touch_fire, 'enable/disable fire when press virtual up/down', 'fire when press up/down');
+ conRegVar('touch_size', @g_touch_size, 0.1, 10, 'size of virtual buttons', 'button size');
+ conRegVar('touch_offset', @g_touch_offset, 0, 100, '', '');
+ conRegVar('touch_alt', @g_touch_alt, 'althernative virtual buttons layout', 'althernative layout');
end.
end.