From 93ec54f81f19eaba1d6c7ef02b8c79f8f0a0e921 Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Tue, 25 May 2021 19:07:51 +0200 Subject: [PATCH] Sort functions --- raylib/platform_android.go | 5 +++++ raylib/platform_arm.go | 7 +++++++ raylib/platform_desktop.go | 14 +++++++------- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/raylib/platform_android.go b/raylib/platform_android.go index 0eeafc6..47d7762 100644 --- a/raylib/platform_android.go +++ b/raylib/platform_android.go @@ -62,6 +62,11 @@ func IsCursorHidden() bool { return false } +// IsCursorOnScreen - Check if cursor is on the current screen. +func IsCursorOnScreen() bool { + return false +} + // EnableCursor - Enables cursor func EnableCursor() { return diff --git a/raylib/platform_arm.go b/raylib/platform_arm.go index 88b200c..1290f2d 100644 --- a/raylib/platform_arm.go +++ b/raylib/platform_arm.go @@ -46,6 +46,13 @@ func IsCursorHidden() bool { return v } +// IsCursorOnScreen - Check if cursor is on the current screen. +func IsCursorOnScreen() bool { + ret := C.IsCursorOnScreen() + v := bool(ret) + return v +} + // EnableCursor - Enables cursor func EnableCursor() { C.EnableCursor() diff --git a/raylib/platform_desktop.go b/raylib/platform_desktop.go index 04e0ec8..2f843c1 100644 --- a/raylib/platform_desktop.go +++ b/raylib/platform_desktop.go @@ -46,6 +46,13 @@ func IsCursorHidden() bool { return v } +// IsCursorOnScreen - Check if cursor is on the current screen. +func IsCursorOnScreen() bool { + ret := C.IsCursorOnScreen() + v := bool(ret) + return v +} + // EnableCursor - Enables cursor func EnableCursor() { C.EnableCursor() @@ -90,10 +97,3 @@ func OpenAsset(name string) (Asset, error) { } return f, nil } - -// IsCursorOnScreen - Check if cursor is on the current screen. -func IsCursorOnScreen() bool { - ret := C.IsCursorOnScreen() - v := bool(ret) - return v -}