mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Added LWJGLUtil.getPlatform to encapsulate platform detection. Added FreeBSD as an alias to Linux.
This commit is contained in:
parent
24c3017d68
commit
0e6c9aa0cd
11 changed files with 784 additions and 738 deletions
|
|
@ -129,7 +129,7 @@ public class Mouse {
|
|||
private static boolean isGrabbed;
|
||||
|
||||
/** Whether we're running windows - which need to manually update cursor animation */
|
||||
private static final boolean isWindows = System.getProperty("os.name").startsWith("Win");
|
||||
private static final boolean isWindows = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS;
|
||||
|
||||
/**
|
||||
* Mouse cannot be constructed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue