actually hook up input to the core

also unbotch CMakeLists.txt
This commit is contained in:
Arisotura
2020-05-19 22:22:21 +02:00
parent 9df8d91bdc
commit b262313816
5 changed files with 150 additions and 4 deletions

View File

@ -27,10 +27,17 @@ namespace Input
extern int JoystickID;
extern SDL_Joystick* Joystick;
extern u32 InputMask;
void Init();
// set joystickID before calling openJoystick()
void OpenJoystick();
void CloseJoystick();
void KeyPress(QKeyEvent* event);
void KeyRelease(QKeyEvent* event);
void Process();
bool IsRightModKey(QKeyEvent* event);