Last change
on this file since 4368 was
4368,
checked in by patrick, 19 years ago
|
orxonox/trunk: started implementation of key mapper
|
File size:
785 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file key_mapper.h |
---|
3 | \brief a construct to map player defined keys to SDL keys |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _KEY_MAPPER_H |
---|
8 | #define _KEY_MAPPER_H |
---|
9 | |
---|
10 | |
---|
11 | #include "base_object.h" |
---|
12 | #include "event_def.h" |
---|
13 | |
---|
14 | |
---|
15 | //! The map class functionalities |
---|
16 | class KeyMapper : public BaseObject { |
---|
17 | |
---|
18 | public: |
---|
19 | KeyMapper(); |
---|
20 | virtual ~KeyMapper(); |
---|
21 | |
---|
22 | void loadKeyBindings(const char* fileName); |
---|
23 | |
---|
24 | private: |
---|
25 | int* nameToIndex (char* name); |
---|
26 | |
---|
27 | public: |
---|
28 | static int PEV_UP; |
---|
29 | static int PEV_DOWN; |
---|
30 | static int PEV_LEFT; |
---|
31 | static int PEV_RIGHT; |
---|
32 | |
---|
33 | static int PEV_STRAFE_LEFT; |
---|
34 | static int PEV_STRAFE_RIGHT; |
---|
35 | |
---|
36 | static int PEV_FIRE1; |
---|
37 | static int PEV_FIRE2; |
---|
38 | |
---|
39 | static int PEV_VIEW1; |
---|
40 | static int PEV_VIEW2; |
---|
41 | static int PEV_VIEW3; |
---|
42 | static int PEV_VIEW4; |
---|
43 | |
---|
44 | private: |
---|
45 | KeyBindings* keyAliases; |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* _KEY_MAPPER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.