Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
in_kb.h
Go to the documentation of this file.
1
/*
2
* Vega Strike
3
* Copyright (C) 2001-2002 Daniel Horn
4
*
5
* http://vegastrike.sourceforge.net/
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
*/
21
22
#ifndef INKB_H
23
#define INKB_H
24
//#ifdef HAVE_SDL
25
//#include <SDL/SDL_keysym.h>
26
//const int KEYMAP_SIZE =SDLK_LAST;
27
//const int KEY_SPECIAL_OFFSET=0;
28
//#else
29
30
enum
KB_MODIFIER_ENUM
31
{
32
KB_MOD_ALT
=1,
33
KB_MOD_CTRL
=2,
34
KB_MOD_SHIFT
=4,
35
KB_MOD_MASK
=7
36
};
37
38
#ifndef NO_GFX
39
#include "
gldrv/winsys.h
"
40
const
int
KEYMAP_SIZE
=
WSK_LAST
;
41
const
int
LAST_MODIFIER
=
KB_MOD_MASK
+1;
42
#else
43
const
int
KEYMAP_SIZE
= 0;
44
const
int
LAST_MODIFIER
= 0;
45
#endif
46
//#endif
47
#include "
in.h
"
48
49
unsigned
int
getActiveModifiers
();
50
unsigned
int
pullActiveModifiers
();
51
void
setActiveModifiers
(
unsigned
int
mask );
52
53
unsigned
int
getModifier
(
const
char
*mod_name );
54
void
ProcessKB
(
unsigned
int
player );
55
void
BindKey
(
int
key,
unsigned
int
modifiers,
unsigned
int
player,
KBHandler
handler,
const
KBData
&data );
56
void
UnbindKey
(
int
key,
unsigned
int
modifiers );
57
void
InitKB
();
58
void
RestoreKB
();
59
#endif
60
src
in_kb.h
Generated on Fri May 29 2015 23:07:33 for Vegastrike 0.5.1 rc1 by
1.8.4