public final class Sys
extends java.lang.Object
System class (named Sys so as not to conflict with java.lang.System)
Modifier and Type | Method and Description |
---|---|
static void |
alert(java.lang.String title,
java.lang.String message)
Attempt to display a modal alert to the user.
|
static java.lang.String |
getClipboard()
Get the contents of the system clipboard.
|
static long |
getTime()
Gets the current value of the hires timer, in ticks.
|
static long |
getTimerResolution()
Obtains the number of ticks that the hires timer does in a second.
|
static java.lang.String |
getVersion()
Return the version of the core LWJGL libraries as a String.
|
static void |
initialize()
Initialization.
|
static boolean |
is64Bit()
Returns true if a 64bit implementation was loaded.
|
static boolean |
openURL(java.lang.String url)
Open the system web browser and point it at the specified URL.
|
public static java.lang.String getVersion()
public static void initialize()
public static boolean is64Bit()
public static long getTimerResolution()
public static long getTime()
NOTEZ BIEN that the hires timer WILL wrap around.
public static void alert(java.lang.String title, java.lang.String message)
The alert should display the title and the message and then the current thread should block until the user dismisses the alert - typically with an OK button click.
It may be that the user's system has no windowing system installed for some reason, in which case this method may do nothing at all, or attempt to provide some console output.
title
- The title of the alert. We suggest using the title of your game.message
- The message text for the alert.public static boolean openURL(java.lang.String url)
There is no guarantee that this will work, nor that we can detect if it has failed - hence we don't return success code or throw an Exception. This is just a best attempt at opening the URL given - don't rely on it to work!
url
- The URL. Ensure that the URL is properly encoded.public static java.lang.String getClipboard()
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.