Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 4432 → Rev 4433

/polymer/eduke32/source/android/in_android.h
1,46 → 1,52
#include "function.h"
#include "compat.h"
 
enum {
LOOK_MODE_MOUSE = 0,
LOOK_MODE_ABSOLUTE,
LOOK_MODE_JOYSTICK
};
 
 
 
#define LOOK_MODE_MOUSE 0
#define LOOK_MODE_ABSOLUTE 1
#define LOOK_MODE_JOYSTICK 2
 
 
 
#ifdef __cplusplus
extern "C"
{
#endif
int PortableKeyEvent(int state, int code, int unicode);
void PortableAction(int state, int action);
 
void PortableMove(float fwd, float strafe);
void PortableMoveFwd(float fwd);
void PortableMoveSide(float strafe);
void PortableLookPitch(int mode, float pitch);
void PortableLookYaw(int mode, float pitch);
void PortableCommand(const char * cmd);
typedef enum {
READ_MENU,
READ_WEAPONS,
READ_AUTOMAP,
READ_KEYBOARD,
READ_RENDERER,
READ_LASTWEAPON,
READ_PAUSED
} portableread_t;
 
void PortableInit(int argc,const char ** argv);
void PortableFrame();
int32_t PortableRead(portableread_t r);
 
int PortableInMenu();
int PortableShowKeyboard();
int PortableInAutomap();
typedef struct
{
int32_t crouchToggleState;
int32_t lastWeapon;
uint64_t functionSticky; //To let at least one tick
uint64_t functionHeld;
} androidplayer_t;
 
unsigned int PortableGetWeapons();
extern androidplayer_t droidplayer;
 
int getLastWeapon();
int PortableKeyEvent(int state, int code, int unicode);
void PortableAction(int state, int action);
 
int isPaused();
void PortableMove(float fwd, float strafe);
void PortableMoveFwd(float fwd);
void PortableMoveSide(float strafe);
void PortableLookPitch(int mode, float pitch);
void PortableLookYaw(int mode, float pitch);
void PortableCommand(const char * cmd);
 
void PortableInit(int argc, const char ** argv);
void PortableFrame();
 
//check mode, so touch graphcics can adapt
int PortableIsSoftwareMode();
 
 
#ifdef __cplusplus
}
#endif