1 (* Copyright (C) Doom 2D: Forever Developers
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, version 3 of the License ONLY.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 {$INCLUDE ../shared/a_modes.inc}
21 g_touch_enabled
: Boolean = False;
22 g_touch_size
: Single = 1.0;
23 g_touch_offset
: Single = 50.0;
24 g_touch_fire
: Boolean = True;
25 g_touch_alt
: Boolean = False;
27 procedure g_Touch_Init
;
28 procedure g_Touch_ShowKeyboard(yes
: Boolean);
29 procedure g_Touch_Draw
;
35 procedure g_Touch_Init
;
39 procedure g_Touch_ShowKeyboard(yes
: Boolean);
43 procedure g_Touch_Draw
;
48 conRegVar('touch_enable', @g_touch_enabled
, 'enable/disable virtual buttons', 'draw buttons');
49 conRegVar('touch_fire', @g_touch_fire
, 'enable/disable fire when press virtual up/down', 'fire when press up/down');
50 conRegVar('touch_size', @g_touch_size
, 0.1, 10, 'size of virtual buttons', 'button size');
51 conRegVar('touch_offset', @g_touch_offset
, 0, 100, '', '');
52 conRegVar('touch_alt', @g_touch_alt
, 'althernative virtual buttons layout', 'althernative layout');