Added LWJGLUtil.getPlatform to encapsulate platform detection. Added FreeBSD as an alias to Linux.

This commit is contained in:
Elias Naur 2005-04-09 17:35:37 +00:00
parent 24c3017d68
commit 0e6c9aa0cd
11 changed files with 784 additions and 738 deletions

View file

@ -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.