mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-23 11:07:24 -04:00
Full AWT char sending support
This commit is contained in:
committed by
Boulay Mathias
parent
4cb2ba9223
commit
665cdb40a8
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
20210430
|
||||
HEllo People
|
||||
@@ -15,6 +15,10 @@ public class AWTInputBridge {
|
||||
// TODO: Android -> AWT keycode mapping
|
||||
nativeSendData(EVENT_TYPE_KEY, (int) keychar, keycode, 0, 0);
|
||||
}
|
||||
|
||||
public static void sendChar(char keychar){
|
||||
nativeSendData(EVENT_TYPE_CHAR, (int) keychar, 0, 0, 0);
|
||||
}
|
||||
|
||||
public static void sendMousePress(int awtButtons, boolean isDown) {
|
||||
nativeSendData(EVENT_TYPE_MOUSE_BUTTON, awtButtons, isDown ? 1 : 0, 0, 0);
|
||||
|
||||
@@ -17,6 +17,7 @@ public class AwtCharSender implements CharacterSenderStrategy {
|
||||
|
||||
@Override
|
||||
public void sendChar(char character) {
|
||||
AWTInputBridge.sendKey(character, character);
|
||||
AWTInputBridge.sendChar(character);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user