Use SDL's keyboard grab support now that it's been upstreamed

This commit is contained in:
Cameron Gutman 2021-01-27 19:59:13 -06:00
commit 9fc921f49f
5 changed files with 47 additions and 201 deletions

View file

@ -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;