mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-28 05:45:03 -06:00
Full AWT char sending support
This commit is contained in:
parent
4cb2ba9223
commit
665cdb40a8
5 changed files with 7 additions and 2 deletions
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue