2008-08-30 19:36:06 +00:00
|
|
|
#ifndef VBAM_SDL_INPUT_H
|
|
|
|
#define VBAM_SDL_INPUT_H
|
2008-08-30 17:50:51 +00:00
|
|
|
|
|
|
|
#include "../System.h"
|
|
|
|
|
2008-08-30 19:29:38 +00:00
|
|
|
enum EKey {
|
2008-08-30 17:50:51 +00:00
|
|
|
KEY_LEFT, KEY_RIGHT,
|
|
|
|
KEY_UP, KEY_DOWN,
|
|
|
|
KEY_BUTTON_A, KEY_BUTTON_B,
|
|
|
|
KEY_BUTTON_START, KEY_BUTTON_SELECT,
|
|
|
|
KEY_BUTTON_L, KEY_BUTTON_R,
|
|
|
|
KEY_BUTTON_SPEED, KEY_BUTTON_CAPTURE,
|
|
|
|
KEY_BUTTON_AUTO_A, KEY_BUTTON_AUTO_B
|
|
|
|
};
|
|
|
|
|
2008-08-30 19:29:38 +00:00
|
|
|
void inputSetKeymap(int joy, EKey key, u16 code);
|
|
|
|
void inputSetMotionKeymap(EKey key, u16 code);
|
|
|
|
bool inputToggleAutoFire(EKey key);
|
2008-08-30 17:50:51 +00:00
|
|
|
|
|
|
|
void sdlUpdateKey(int key, bool down);
|
|
|
|
void sdlUpdateJoyButton(int which, int button, bool pressed);
|
|
|
|
void sdlUpdateJoyHat(int which, int hat, int value);
|
|
|
|
void sdlUpdateJoyAxis(int which, int axis, int value);
|
|
|
|
void sdlCheckKeys();
|
|
|
|
|
2008-08-30 19:36:06 +00:00
|
|
|
#endif // VBAM_SDL_INPUT_H
|