mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-05 17:36:26 +00:00
Minor tweaks
This commit is contained in:
@@ -2812,7 +2812,7 @@ static void RecordAutomationEvent(unsigned int frame)
|
|||||||
// INPUT_GAMEPAD_CONNECT
|
// INPUT_GAMEPAD_CONNECT
|
||||||
/*
|
/*
|
||||||
if ((CORE.Input.Gamepad.currentState[gamepad] != CORE.Input.Gamepad.previousState[gamepad]) &&
|
if ((CORE.Input.Gamepad.currentState[gamepad] != CORE.Input.Gamepad.previousState[gamepad]) &&
|
||||||
(CORE.Input.Gamepad.currentState[gamepad] == true)) // Check if changed to ready
|
(CORE.Input.Gamepad.currentState[gamepad])) // Check if changed to ready
|
||||||
{
|
{
|
||||||
// TODO: Save gamepad connect event
|
// TODO: Save gamepad connect event
|
||||||
}
|
}
|
||||||
@@ -2821,7 +2821,7 @@ static void RecordAutomationEvent(unsigned int frame)
|
|||||||
// INPUT_GAMEPAD_DISCONNECT
|
// INPUT_GAMEPAD_DISCONNECT
|
||||||
/*
|
/*
|
||||||
if ((CORE.Input.Gamepad.currentState[gamepad] != CORE.Input.Gamepad.previousState[gamepad]) &&
|
if ((CORE.Input.Gamepad.currentState[gamepad] != CORE.Input.Gamepad.previousState[gamepad]) &&
|
||||||
(CORE.Input.Gamepad.currentState[gamepad] == false)) // Check if changed to not-ready
|
(!CORE.Input.Gamepad.currentState[gamepad])) // Check if changed to not-ready
|
||||||
{
|
{
|
||||||
// TODO: Save gamepad disconnect event
|
// TODO: Save gamepad disconnect event
|
||||||
}
|
}
|
||||||
|
@@ -1966,7 +1966,7 @@ static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffs
|
|||||||
// GLFW3 CursorEnter Callback, when cursor enters the window
|
// GLFW3 CursorEnter Callback, when cursor enters the window
|
||||||
static void CursorEnterCallback(GLFWwindow *window, int enter)
|
static void CursorEnterCallback(GLFWwindow *window, int enter)
|
||||||
{
|
{
|
||||||
if (enter == true) CORE.Input.Mouse.cursorOnScreen = true;
|
if (enter) CORE.Input.Mouse.cursorOnScreen = true;
|
||||||
else CORE.Input.Mouse.cursorOnScreen = false;
|
else CORE.Input.Mouse.cursorOnScreen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1336,7 +1336,7 @@ static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffs
|
|||||||
// GLFW3 CursorEnter Callback, when cursor enters the window
|
// GLFW3 CursorEnter Callback, when cursor enters the window
|
||||||
static void CursorEnterCallback(GLFWwindow *window, int enter)
|
static void CursorEnterCallback(GLFWwindow *window, int enter)
|
||||||
{
|
{
|
||||||
if (enter == true) CORE.Input.Mouse.cursorOnScreen = true;
|
if (enter) CORE.Input.Mouse.cursorOnScreen = true;
|
||||||
else CORE.Input.Mouse.cursorOnScreen = false;
|
else CORE.Input.Mouse.cursorOnScreen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user