Rev 4386 | Rev 4434 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4386 | terminx | 1 | #include "function.h" |
4433 | terminx | 2 | #include "compat.h" |
4386 | terminx | 3 | |
4433 | terminx | 4 | enum { |
5 | LOOK_MODE_MOUSE = 0, |
||
6 | LOOK_MODE_ABSOLUTE, |
||
7 | LOOK_MODE_JOYSTICK |
||
8 | }; |
||
4386 | terminx | 9 | |
10 | #ifdef __cplusplus |
||
11 | extern "C" |
||
12 | { |
||
13 | #endif |
||
14 | |||
4433 | terminx | 15 | typedef enum { |
16 | READ_MENU, |
||
17 | READ_WEAPONS, |
||
18 | READ_AUTOMAP, |
||
19 | READ_KEYBOARD, |
||
20 | READ_RENDERER, |
||
21 | READ_LASTWEAPON, |
||
22 | READ_PAUSED |
||
23 | } portableread_t; |
||
4386 | terminx | 24 | |
4433 | terminx | 25 | int32_t PortableRead(portableread_t r); |
4386 | terminx | 26 | |
4433 | terminx | 27 | typedef struct |
28 | { |
||
29 | int32_t crouchToggleState; |
||
30 | int32_t lastWeapon; |
||
31 | uint64_t functionSticky; //To let at least one tick |
||
32 | uint64_t functionHeld; |
||
33 | } androidplayer_t; |
||
4386 | terminx | 34 | |
4433 | terminx | 35 | extern androidplayer_t droidplayer; |
4386 | terminx | 36 | |
4433 | terminx | 37 | int PortableKeyEvent(int state, int code, int unicode); |
38 | void PortableAction(int state, int action); |
||
4386 | terminx | 39 | |
4433 | terminx | 40 | void PortableMove(float fwd, float strafe); |
41 | void PortableMoveFwd(float fwd); |
||
42 | void PortableMoveSide(float strafe); |
||
43 | void PortableLookPitch(int mode, float pitch); |
||
44 | void PortableLookYaw(int mode, float pitch); |
||
45 | void PortableCommand(const char * cmd); |
||
4386 | terminx | 46 | |
4433 | terminx | 47 | void PortableInit(int argc, const char ** argv); |
48 | void PortableFrame(); |
||
4386 | terminx | 49 | |
50 | #ifdef __cplusplus |
||
51 | } |
||
52 | #endif |