update 20.06.2009

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@27 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
gerstrong
2009-06-20 18:08:58 +00:00
parent 0e9ddc542c
commit 053a44eeae
58 changed files with 838 additions and 1298 deletions

View File

@@ -72,6 +72,7 @@
#define KTAB 48
#define KBCKSPCE 49
#define KLALT 50
// New keys
#define KA 54
@@ -114,6 +115,7 @@
#define IC_DOWN 7
#define NUMBER_OF_COMMANDS 8
#define NUM_INPUTS 2
#define ETYPE_NO_JOYSTICK 0
#define ETYPE_JOYAXIS 1
@@ -126,7 +128,9 @@ typedef struct stInputCommand
//int value;
SDLKey keysym;
unsigned int joyeventtype;
Uint8 which;
int joyaxis;
unsigned short joybutton;
int joyvalue;
@@ -147,12 +151,15 @@ public:
bool getHoldedCommand(int command);
bool getPressedCommand(int command);
bool getPressedAnyCommand(void);
bool getPressedAnyCommand();
bool getHoldedCommand(Uint8 player, int command);
bool getPressedCommand(Uint8 player, int command);
bool getPressedAnyCommand(Uint8 player);
bool getExitEvent(void);
void cancelExitEvent(void);
void getEventName(int position, char *buf);
bool readNewEvent(int position);
void getEventName(int position, unsigned char input, char *buf);
bool readNewEvent(Uint8 device, int position);
short loadControlconfig(void);
short saveControlconfig(void);
@@ -161,7 +168,7 @@ public:
private:
SDL_Event Event;
stInputCommand InputCommand[NUMBER_OF_COMMANDS];
stInputCommand InputCommand[NUM_INPUTS][NUMBER_OF_COMMANDS];
bool m_exit;
bool immediate_keytable[KEYTABLE_SIZE];