mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Add check to see if raylib is imported with ShowCursor on sys/windows
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
// +build windows
|
// +build windows
|
||||||
package sys_windows
|
package sys_windows
|
||||||
|
|
||||||
|
import "base:intrinsics"
|
||||||
foreign import user32 "system:User32.lib"
|
foreign import user32 "system:User32.lib"
|
||||||
|
|
||||||
@(default_calling_convention="system")
|
@(default_calling_convention="system")
|
||||||
@@ -155,6 +156,9 @@ foreign user32 {
|
|||||||
GetCursorPos :: proc(lpPoint: LPPOINT) -> BOOL ---
|
GetCursorPos :: proc(lpPoint: LPPOINT) -> BOOL ---
|
||||||
SetCursorPos :: proc(X: c_int, Y: c_int) -> BOOL ---
|
SetCursorPos :: proc(X: c_int, Y: c_int) -> BOOL ---
|
||||||
SetCursor :: proc(hCursor: HCURSOR) -> HCURSOR ---
|
SetCursor :: proc(hCursor: HCURSOR) -> HCURSOR ---
|
||||||
|
when !intrinsics.is_package_imported("raylib") {
|
||||||
|
ShowCursor :: proc(bShow: BOOL) -> INT ---
|
||||||
|
}
|
||||||
|
|
||||||
EnumDisplaySettingsW :: proc(lpszDeviceName: LPCWSTR, iModeNum: DWORD, lpDevMode: ^DEVMODEW) -> BOOL ---
|
EnumDisplaySettingsW :: proc(lpszDeviceName: LPCWSTR, iModeNum: DWORD, lpDevMode: ^DEVMODEW) -> BOOL ---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user