DEADSOFTWARE

implement SDL1.2 system driver
[d2df-sdl.git] / src / game / stub / g_touch.pas
1 (* Copyright (C) Doom 2D: Forever Developers
2 *
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.
6 *
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.
11 *
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/>.
14 *)
15 {$INCLUDE ../shared/a_modes.inc}
16 unit g_touch;
18 interface
20 var
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;
31 implementation
33 uses g_console;
35 procedure g_Touch_Init;
36 begin
37 end;
39 procedure g_Touch_ShowKeyboard(yes: Boolean);
40 begin
41 end;
43 procedure g_Touch_Draw;
44 begin
45 end;
47 initialization
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');
53 end.