mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 01:46:20 +08: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;
|
||||
|
||||
@@ -586,7 +586,7 @@ static void ClearBinding(void)
|
||||
static void SetDisplayMode(ControllerDisplayMode mode)
|
||||
{
|
||||
float x, y;
|
||||
Uint32 button_state;
|
||||
SDL_MouseButtonFlags button_state;
|
||||
|
||||
if (mode == CONTROLLER_MODE_BINDING) {
|
||||
/* Make a backup of the current mapping */
|
||||
|
||||
Reference in New Issue
Block a user