mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
*** empty log message ***
This commit is contained in:
parent
6e73a7a953
commit
e143541c01
4 changed files with 43 additions and 24 deletions
|
|
@ -344,18 +344,20 @@ public class Keyboard {
|
|||
/**
|
||||
* Enable keyboard translation. Must be called after the keyboard is created,
|
||||
* and keyboard buffering must be enabled.
|
||||
* @return false if translation cannot be enabled; true if it can
|
||||
*/
|
||||
public static void enableTranslation() {
|
||||
public static boolean enableTranslation() {
|
||||
assert created : "The keyboard has not been created.";
|
||||
assert readBuffer != null : "Keyboard buffering has not been enabled.";
|
||||
nEnableTranslation();
|
||||
translationEnabled = true;
|
||||
|
||||
translationEnabled = nEnableTranslation();
|
||||
return translationEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Native method to enable the translation buffer
|
||||
*/
|
||||
private static native void nEnableTranslation();
|
||||
private static native boolean nEnableTranslation();
|
||||
|
||||
/**
|
||||
* Enable keyboard buffering. Must be called after the keyboard is created.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue