Full AWT char sending support

This commit is contained in:
SerpentSpirale
2022-03-24 22:28:33 +01:00
committed by Boulay Mathias
parent 4cb2ba9223
commit 665cdb40a8
5 changed files with 7 additions and 2 deletions

View File

@@ -1 +1 @@
20210430
HEllo People

View File

@@ -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);

View File

@@ -17,6 +17,7 @@ public class AwtCharSender implements CharacterSenderStrategy {
@Override
public void sendChar(char character) {
AWTInputBridge.sendKey(character, character);
AWTInputBridge.sendChar(character);
}
}