Put getClipboard back.
This commit is contained in:
parent
6c3f89f3c1
commit
f0954a9a70
|
@ -260,4 +260,12 @@ public final class Sys {
|
||||||
*/
|
*/
|
||||||
private static native void nOpenURL(String url);
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Sys_nOpenURL
|
||||||
(JNIEnv *, jclass, jstring);
|
(JNIEnv *, jclass, jstring);
|
||||||
|
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL Java_org_lwjgl_Sys_getClipboard
|
||||||
|
(JNIEnv *, jclass);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -167,3 +167,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Sys_nOpenURL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL Java_org_lwjgl_Sys_getClipboard
|
||||||
|
(JNIEnv * env, jclass clazz)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
|
@ -177,3 +177,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Sys_nOpenURL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL Java_org_lwjgl_Sys_getClipboard
|
||||||
|
(JNIEnv * env, jclass clazz)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue