Subversion Repositories eduke32

Rev

Rev 4439 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4439 Rev 4440
Line 31... Line 31...
31
31
32
// where do these numbers come from?
32
// where do these numbers come from?
33
#define ANDROIDFORWARDMOVEFACTOR    5000
33
#define ANDROIDFORWARDMOVEFACTOR    5000
34
#define ANDROIDSIDEMOVEFACTOR       200
34
#define ANDROIDSIDEMOVEFACTOR       200
35
#define ANDROIDPITCHFACTOR          100000
35
#define ANDROIDPITCHFACTOR          100000
36
#define ANDROIDYAWFACTOR            80000
36
#define ANDROIDYAWFACTOR            160000
-
 
37
-
 
38
#define ANDROIDPITCHFACTORJOYSTICK          2000
-
 
39
#define ANDROIDYAWFACTORJOYSTICK            4000
-
 
40
37
41
38
#define MINCONTROLALPHA             0.25f
42
#define MINCONTROLALPHA             0.25f
39
43
40
typedef enum {
44
typedef enum {
41
    READ_MENU,
45
    READ_MENU,
Line 57... Line 61...
57
61
58
    int32_t left_double_action;
62
    int32_t left_double_action;
59
    int32_t right_double_action;
63
    int32_t right_double_action;
60
64
61
    double pitch, yaw;
65
    double pitch, yaw;
-
 
66
    double pitch_joystick, yaw_joystick;
62
    float forwardmove, sidemove;
67
    float forwardmove, sidemove;
63
68
64
    // set by configuration UI
69
    // set by configuration UI
65
    float strafe_sens, forward_sens;
70
    float strafe_sens, forward_sens;
66
    float pitch_sens, yaw_sens;
71
    float pitch_sens, yaw_sens;
Line 73... Line 78...
73
    uint16_t screen_width, screen_height;
78
    uint16_t screen_width, screen_height;
74
} droidsysinfo_t;
79
} droidsysinfo_t;
75
80
76
extern droidinput_t droidinput;
81
extern droidinput_t droidinput;
77
extern droidsysinfo_t droidinfo;
82
extern droidsysinfo_t droidinfo;
-
 
83
extern char toggleCrouch;
78
84
79
int PortableKeyEvent(int state, int code, int unicode);
85
int PortableKeyEvent(int state, int code, int unicode);
80
int PortableRead(portableread_t r);
86
int PortableRead(portableread_t r);
81
87
82
void PortableAction(int state, int action);
88
void PortableAction(int state, int action);
83
89
84
void PortableMove(float fwd, float strafe);
90
void PortableMove(float fwd, float strafe);
85
void PortableLook(double yaw, double pitch);
91
void PortableLook(double yaw, double pitch);
-
 
92
void PortableLookJoystick(double yaw, double pitch);
86
void PortableCommand(const char * cmd);
93
void PortableCommand(const char * cmd);
87
94
88
void PortableInit(int argc, const char ** argv);
95
void PortableInit(int argc, const char ** argv);
89
96
90
#ifdef __cplusplus
97
#ifdef __cplusplus