mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
*** empty log message ***
This commit is contained in:
parent
743bbad6c7
commit
dd0886851a
5 changed files with 89 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ import java.io.IOException;
|
|||
* @version $Revision$
|
||||
*/
|
||||
public final class Sys {
|
||||
public static final String VERSION = "0.91";
|
||||
public static final String VERSION = "0.92";
|
||||
|
||||
/** Low process priority. @see #setProcessPriority() */
|
||||
public static final int LOW_PRIORITY = -1;
|
||||
|
|
@ -259,4 +259,28 @@ public final class Sys {
|
|||
* Where necessary, we use a native implementation of openURL.
|
||||
*/
|
||||
private static native void nOpenURL(String url);
|
||||
|
||||
/**
|
||||
* Get the contents of the system clipboard. The system might not have a clipboard
|
||||
* (particularly if it doesn't even have a keyboard) in which case we return null.
|
||||
* Otherwise we return a String, which may be the empty string "".
|
||||
* @return a String, or null if there is no system clipboard.
|
||||
*/
|
||||
public static native String getClipboard();
|
||||
|
||||
/**
|
||||
* Set the contents of the system clipboard. The system might not have a clipboard
|
||||
* (particularly if it doesn't even have a keyboard) in which case we silently
|
||||
* ignore this method as a no-op.<p>Passing null is allowed and is effectively the
|
||||
* same as passing the empty string "".
|
||||
* @param newClip the new clipboard contents
|
||||
*/
|
||||
public static void setClipboard(String newClip) {
|
||||
if (newClip == null) {
|
||||
newClip = "";
|
||||
}
|
||||
nSetClipboard(newClip);
|
||||
}
|
||||
private static native void nSetClipboard(String newClip);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue