mouse: Move mouse button state from a Uint32 to a formal typedef.

Reference Issue #9812.
This commit is contained in:
Ryan C. Gordon
2024-05-25 22:54:31 -04:00
parent 13b18e3c41
commit cf2874080f
13 changed files with 60 additions and 56 deletions

View File

@@ -32,7 +32,7 @@ static int mouse_getMouseState(void *arg)
{
float x;
float y;
Uint32 state;
SDL_MouseButtonFlags state;
/* Pump some events to update mouse state */
SDL_PumpEvents();
@@ -77,7 +77,7 @@ static int mouse_getRelativeMouseState(void *arg)
{
float x;
float y;
Uint32 state;
SDL_MouseButtonFlags state;
/* Pump some events to update mouse state */
SDL_PumpEvents();
@@ -580,7 +580,7 @@ static int mouse_getGlobalMouseState(void *arg)
{
float x;
float y;
Uint32 state;
SDL_MouseButtonFlags state;
x = -FLT_MAX;
y = -FLT_MAX;