Add a char sender function

This commit is contained in:
SerpentSpirale
2021-08-04 23:33:14 +02:00
committed by ArtDev
parent e0b2f90508
commit b05cc6576f

View File

@@ -80,6 +80,15 @@ public class CallbackBridge {
// sendData(JRE_TYPE_KEYCODE_CONTROL, keycode, Character.toString(keychar), Boolean.toString(isDown), modifiers);
}
/**
* Send only the char to the input bridge
* Intended for chat functions, or anything that only requires writing text
* @param keychar the char to send
*/
public static void sendChar(char keychar){
nativeSendChar(keychar);
}
public static void sendMouseKeycode(int button, int modifiers, boolean isDown) {
DEBUG_STRING.append("MouseKey=").append(button).append(", down=").append(isDown).append("\n");
// if (isGrabbing()) DEBUG_STRING.append("MouseGrabStrace: " + android.util.Log.getStackTraceString(new Throwable()) + "\n");