PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
controller_key_map.h
1 #ifndef CONTROLLER_KEY_MAP_H
2 #define CONTROLLER_KEY_MAP_H
3 
4 struct KM_Key
5 {
6  inline KM_Key()
7  {
8  val=-1;
9  id=-1;
10  type=-1;
11  }
12  int val;
13  int id;
14  int type;
15 };
16 
17 struct KeyMap
18 {
19  KM_Key start;
20  KM_Key drop;
21 
22  KM_Key left;
23  KM_Key right;
24  KM_Key up;
25  KM_Key down;
26 
27  KM_Key jump;
28  KM_Key jump_alt;
29 
30  KM_Key run;
31  KM_Key run_alt;
32 };
33 
35 {
36  enum CtrlTypes
37  {
38  NoControl=-1,
39  JoyAxis=0,
40  JoyBallX,
41  JoyBallY,
42  JoyHat,
43  JoyButton
44  };
45  inline KeyMapJoyCtrls()
46  {
47  start=-1; drop=-1;
48  left=-1; right=-1; up=-1; down=-1;
49  jump=-1; jump_alt=-1; run=-1; run_alt=-1;
50  }
51  int start;
52 
53  int left;
54  int right;
55  int up;
56  int down;
57 
58  int run;
59  int jump;
60  int run_alt;
61  int jump_alt;
62 
63  int drop;
64 };
65 
66 #endif // CONTROLLER_KEY_MAP_H
67 
Definition: controller_key_map.h:34
Definition: controller_key_map.h:4
Definition: controller_key_map.h:17