Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 4435 → Rev 4436

/polymer/eduke32/source/android/in_android.h
13,16 → 13,35
#define MENU_SELECT 0x204
#define MENU_BACK 0x205
 
#define KEY_QUICK_CMD 0x1005
#define KEY_SHOW_KBRD 0x1008
#define KEY_SHOW_INVEN 0x1009
#define KEY_QUICK_SAVE 0x100A
#define KEY_QUICK_LOAD 0x100B
 
#define KEY_QUICK_KEY1 0x1011
#define KEY_QUICK_KEY2 0x1012
#define KEY_QUICK_KEY3 0x1013
#define KEY_QUICK_KEY4 0x1014
 
#define BUTTONSET(x,value) (CONTROL_ButtonState |= ((uint64_t)value<<((uint64_t)(x))))
#define BUTTONCLEAR(x) (CONTROL_ButtonState &= ~((uint64_t)1<<((uint64_t)(x))))
 
#define PRECISIONSHOOTFACTOR 0.3f
#define PRECISIONSHOOTFACTOR 0.3f
 
// where do these numbers come from?
#define ANDROIDFORWARDMOVEFACTOR 5000
#define ANDROIDSIDEMOVEFACTOR 200
#define ANDROIDPITCHFACTOR 100000
#define ANDROIDYAWFACTOR 80000
 
#define MINCONTROLALPHA 0.25f
 
typedef enum {
READ_MENU,
READ_WEAPONS,
READ_AUTOMAP,
READ_KEYBOARD,
READ_MAPFOLLOWMODE,
READ_RENDERER,
READ_LASTWEAPON,
READ_PAUSED
40,6 → 59,15
float forwardmove, sidemove;
} droidinput_t;
 
typedef struct
{
int32_t audio_sample_rate;
int32_t audio_buffer_size;
uint16_t screen_width, screen_height;
} droidsysinfo_t;
 
extern droidsysinfo_t droidinfo;
 
int PortableKeyEvent(int state, int code, int unicode);
int PortableRead(portableread_t r);