Use SDL's keyboard grab support now that it's been upstreamed
This commit is contained in:
parent
4b9e90ac72
commit
9fc921f49f
5 changed files with 47 additions and 201 deletions
|
|
@ -5,11 +5,6 @@
|
|||
|
||||
#include <SDL.h>
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#define SDL_CODE_HIDE_CURSOR 1
|
||||
#define SDL_CODE_SHOW_CURSOR 2
|
||||
|
||||
|
|
@ -137,11 +132,6 @@ private:
|
|||
static
|
||||
Uint32 dragTimerCallback(Uint32 interval, void* param);
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
static
|
||||
LRESULT CALLBACK keyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam);
|
||||
#endif
|
||||
|
||||
SDL_Window* m_Window;
|
||||
bool m_MultiController;
|
||||
bool m_GamepadMouse;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue