mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-10 18:09:32 +00:00
raylib: Add back ShowCursor
This commit is contained in:
@@ -205,7 +205,7 @@ foreign user32 {
|
||||
GetCursorPos :: proc(lpPoint: LPPOINT) -> BOOL ---
|
||||
SetCursorPos :: proc(X, Y: INT) -> BOOL ---
|
||||
SetCursor :: proc(hCursor: HCURSOR) -> HCURSOR ---
|
||||
when !intrinsics.is_package_imported("raylib") {
|
||||
when !intrinsics.is_package_imported("raylib") && !intrisincs.is_package_imported("raylib6") {
|
||||
ShowCursor :: proc(bShow: BOOL) -> INT ---
|
||||
}
|
||||
|
||||
|
||||
3
vendor/raylib/v6/raylib.odin
vendored
3
vendor/raylib/v6/raylib.odin
vendored
@@ -981,8 +981,7 @@ foreign lib {
|
||||
|
||||
// Cursor-related functions
|
||||
|
||||
// NOTE(Jeroen): Conflicts with `ShowCursor` in `core:sys/windows`
|
||||
// ShowCursor :: proc() --- // Shows cursor
|
||||
ShowCursor :: proc() --- // Shows cursor
|
||||
HideCursor :: proc() --- // Hides cursor
|
||||
IsCursorHidden :: proc() -> bool --- // Check if cursor is not visible
|
||||
EnableCursor :: proc() --- // Enables cursor (unlock cursor)
|
||||
|
||||
Reference in New Issue
Block a user