Specified the default settings for visible and enabled cursor, and event waiting
This commit is contained in:
parent
6ef0044381
commit
d06a8742ee
|
|
@ -197,12 +197,12 @@
|
|||
<Overload retVal="void" descr="Enable waiting for events on EndDrawing(), no automatic event polling"></Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DisableEventWaiting" func="yes">
|
||||
<Overload retVal="void" descr="Disable waiting for events on EndDrawing(), automatic events polling"></Overload>
|
||||
<Overload retVal="void" descr="Disable waiting for events on EndDrawing(), automatic events polling (default)"></Overload>
|
||||
</KeyWord>
|
||||
|
||||
<!-- Cursor-related functions -->
|
||||
<KeyWord name="ShowCursor" func="yes">
|
||||
<Overload retVal="void" descr="Shows cursor"></Overload>
|
||||
<Overload retVal="void" descr="Shows cursor (default)"></Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="HideCursor" func="yes">
|
||||
<Overload retVal="void" descr="Hides cursor"></Overload>
|
||||
|
|
@ -211,7 +211,7 @@
|
|||
<Overload retVal="bool" descr="Check if cursor is not visible"></Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="EnableCursor" func="yes">
|
||||
<Overload retVal="void" descr="Enables cursor (unlock cursor)"></Overload>
|
||||
<Overload retVal="void" descr="Enables cursor (unlock cursor) (default)"></Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="DisableCursor" func="yes">
|
||||
<Overload retVal="void" descr="Disables cursor (lock cursor)"></Overload>
|
||||
|
|
|
|||
|
|
@ -51,13 +51,13 @@ RLAPI void SetClipboardText(const char *text); // Set clipboa
|
|||
RLAPI const char *GetClipboardText(void); // Get clipboard text content
|
||||
RLAPI Image GetClipboardImage(void); // Get clipboard image
|
||||
RLAPI void EnableEventWaiting(void); // Enable waiting for events on EndDrawing(), no automatic event polling
|
||||
RLAPI void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling
|
||||
RLAPI void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling (default)
|
||||
|
||||
// Cursor-related functions
|
||||
RLAPI void ShowCursor(void); // Shows cursor
|
||||
RLAPI void ShowCursor(void); // Shows cursor (default)
|
||||
RLAPI void HideCursor(void); // Hides cursor
|
||||
RLAPI bool IsCursorHidden(void); // Check if cursor is not visible
|
||||
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor)
|
||||
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor) (default)
|
||||
RLAPI void DisableCursor(void); // Disables cursor (lock cursor)
|
||||
RLAPI bool IsCursorOnScreen(void); // Check if cursor is on the screen
|
||||
|
||||
|
|
|
|||
|
|
@ -610,7 +610,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
CORE.Input.Mouse.cursorHidden = false;
|
||||
|
|
@ -622,7 +622,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
// Set cursor position in the middle
|
||||
|
|
|
|||
|
|
@ -1121,7 +1121,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
glfwSetInputMode(platform.handle, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||
|
|
@ -1137,7 +1137,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
glfwSetInputMode(platform.handle, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||
|
|
|
|||
|
|
@ -1083,7 +1083,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
RGFW_window_showMouse(platform.window, true);
|
||||
|
|
@ -1097,7 +1097,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
RGFW_window_captureRawMouse(platform.window, false);
|
||||
|
|
|
|||
|
|
@ -1216,7 +1216,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
#if defined(USING_VERSION_SDL3)
|
||||
|
|
@ -1238,7 +1238,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
|
|
|
|||
|
|
@ -1139,7 +1139,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
SetCursor(LoadCursorW(NULL, (LPCWSTR)IDC_ARROW));
|
||||
|
|
@ -1155,7 +1155,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
if (CORE.Input.Mouse.cursorLocked)
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
CORE.Input.Mouse.cursorHidden = false;
|
||||
|
|
@ -567,7 +567,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
// Set cursor position in the middle
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
CORE.Input.Mouse.cursorHidden = false;
|
||||
|
|
@ -330,7 +330,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
// Set cursor position in the middle
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
CORE.Input.Mouse.cursorHidden = false;
|
||||
|
|
@ -309,7 +309,7 @@ void HideCursor(void)
|
|||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
// Set cursor position in the middle
|
||||
|
|
|
|||
|
|
@ -902,7 +902,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
if (CORE.Input.Mouse.cursorHidden)
|
||||
|
|
@ -924,7 +924,7 @@ void HideCursor(void)
|
|||
}
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
emscripten_exit_pointerlock();
|
||||
|
|
|
|||
|
|
@ -880,7 +880,7 @@ Image GetClipboardImage(void)
|
|||
return image;
|
||||
}
|
||||
|
||||
// Show mouse cursor
|
||||
// Show mouse cursor (default)
|
||||
void ShowCursor(void)
|
||||
{
|
||||
if (CORE.Input.Mouse.cursorHidden)
|
||||
|
|
@ -902,7 +902,7 @@ void HideCursor(void)
|
|||
}
|
||||
}
|
||||
|
||||
// Enables cursor (unlock cursor)
|
||||
// Enables cursor (unlock cursor) (default)
|
||||
void EnableCursor(void)
|
||||
{
|
||||
emscripten_exit_pointerlock();
|
||||
|
|
|
|||
|
|
@ -1031,13 +1031,13 @@ RLAPI void SetClipboardText(const char *text); // Set clipboa
|
|||
RLAPI const char *GetClipboardText(void); // Get clipboard text content
|
||||
RLAPI Image GetClipboardImage(void); // Get clipboard image content
|
||||
RLAPI void EnableEventWaiting(void); // Enable waiting for events on EndDrawing(), no automatic event polling
|
||||
RLAPI void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling
|
||||
RLAPI void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling (default)
|
||||
|
||||
// Cursor-related functions
|
||||
RLAPI void ShowCursor(void); // Shows cursor
|
||||
RLAPI void ShowCursor(void); // Shows cursor (default)
|
||||
RLAPI void HideCursor(void); // Hides cursor
|
||||
RLAPI bool IsCursorHidden(void); // Check if cursor is not visible
|
||||
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor)
|
||||
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor) (default)
|
||||
RLAPI void DisableCursor(void); // Disables cursor (lock cursor)
|
||||
RLAPI bool IsCursorOnScreen(void); // Check if cursor is on the screen
|
||||
|
||||
|
|
|
|||
|
|
@ -847,7 +847,7 @@ void EnableEventWaiting(void)
|
|||
CORE.Window.eventWaiting = true;
|
||||
}
|
||||
|
||||
// Disable waiting for events on EndDrawing(), automatic events polling
|
||||
// Disable waiting for events on EndDrawing(), automatic events polling (default)
|
||||
void DisableEventWaiting(void)
|
||||
{
|
||||
CORE.Window.eventWaiting = false;
|
||||
|
|
|
|||
|
|
@ -3568,12 +3568,12 @@
|
|||
},
|
||||
{
|
||||
"name": "DisableEventWaiting",
|
||||
"description": "Disable waiting for events on EndDrawing(), automatic events polling",
|
||||
"description": "Disable waiting for events on EndDrawing(), automatic events polling (default)",
|
||||
"returnType": "void"
|
||||
},
|
||||
{
|
||||
"name": "ShowCursor",
|
||||
"description": "Shows cursor",
|
||||
"description": "Shows cursor (default)",
|
||||
"returnType": "void"
|
||||
},
|
||||
{
|
||||
|
|
@ -3588,7 +3588,7 @@
|
|||
},
|
||||
{
|
||||
"name": "EnableCursor",
|
||||
"description": "Enables cursor (unlock cursor)",
|
||||
"description": "Enables cursor (unlock cursor) (default)",
|
||||
"returnType": "void"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3445,12 +3445,12 @@ return {
|
|||
},
|
||||
{
|
||||
name = "DisableEventWaiting",
|
||||
description = "Disable waiting for events on EndDrawing(), automatic events polling",
|
||||
description = "Disable waiting for events on EndDrawing(), automatic events polling (default)",
|
||||
returnType = "void"
|
||||
},
|
||||
{
|
||||
name = "ShowCursor",
|
||||
description = "Shows cursor",
|
||||
description = "Shows cursor (default)",
|
||||
returnType = "void"
|
||||
},
|
||||
{
|
||||
|
|
@ -3465,7 +3465,7 @@ return {
|
|||
},
|
||||
{
|
||||
name = "EnableCursor",
|
||||
description = "Enables cursor (unlock cursor)",
|
||||
description = "Enables cursor (unlock cursor) (default)",
|
||||
returnType = "void"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1252,12 +1252,12 @@ Function 048: EnableEventWaiting() (0 input parameters)
|
|||
Function 049: DisableEventWaiting() (0 input parameters)
|
||||
Name: DisableEventWaiting
|
||||
Return type: void
|
||||
Description: Disable waiting for events on EndDrawing(), automatic events polling
|
||||
Description: Disable waiting for events on EndDrawing(), automatic events polling (default)
|
||||
No input parameters
|
||||
Function 050: ShowCursor() (0 input parameters)
|
||||
Name: ShowCursor
|
||||
Return type: void
|
||||
Description: Shows cursor
|
||||
Description: Shows cursor (default)
|
||||
No input parameters
|
||||
Function 051: HideCursor() (0 input parameters)
|
||||
Name: HideCursor
|
||||
|
|
@ -1272,7 +1272,7 @@ Function 052: IsCursorHidden() (0 input parameters)
|
|||
Function 053: EnableCursor() (0 input parameters)
|
||||
Name: EnableCursor
|
||||
Return type: void
|
||||
Description: Enables cursor (unlock cursor)
|
||||
Description: Enables cursor (unlock cursor) (default)
|
||||
No input parameters
|
||||
Function 054: DisableCursor() (0 input parameters)
|
||||
Name: DisableCursor
|
||||
|
|
|
|||
|
|
@ -807,15 +807,15 @@
|
|||
</Function>
|
||||
<Function name="EnableEventWaiting" retType="void" paramCount="0" desc="Enable waiting for events on EndDrawing(), no automatic event polling">
|
||||
</Function>
|
||||
<Function name="DisableEventWaiting" retType="void" paramCount="0" desc="Disable waiting for events on EndDrawing(), automatic events polling">
|
||||
<Function name="DisableEventWaiting" retType="void" paramCount="0" desc="Disable waiting for events on EndDrawing(), automatic events polling (default)">
|
||||
</Function>
|
||||
<Function name="ShowCursor" retType="void" paramCount="0" desc="Shows cursor">
|
||||
<Function name="ShowCursor" retType="void" paramCount="0" desc="Shows cursor (default)">
|
||||
</Function>
|
||||
<Function name="HideCursor" retType="void" paramCount="0" desc="Hides cursor">
|
||||
</Function>
|
||||
<Function name="IsCursorHidden" retType="bool" paramCount="0" desc="Check if cursor is not visible">
|
||||
</Function>
|
||||
<Function name="EnableCursor" retType="void" paramCount="0" desc="Enables cursor (unlock cursor)">
|
||||
<Function name="EnableCursor" retType="void" paramCount="0" desc="Enables cursor (unlock cursor) (default)">
|
||||
</Function>
|
||||
<Function name="DisableCursor" retType="void" paramCount="0" desc="Disables cursor (lock cursor)">
|
||||
</Function>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user