mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-16 07:11:16 +00:00
mouse: Move mouse button state from a Uint32 to a formal typedef.
Reference Issue #9812.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user