Convert keycode to RdevKey

This commit is contained in:
Asura
2022-08-26 18:29:46 -07:00
parent b38c3299d8
commit ee19a03ecc
8 changed files with 147 additions and 76 deletions

View File

@@ -980,6 +980,12 @@ class FFI {
msg: json.encode(modify({'type': type, 'buttons': button.value})));
}
// Raw Key
void inputRawKey(int keyCode, int scanCode, bool down){
debugPrint(scanCode.toString());
bind.sessionInputRawKey(id: id, keycode: keyCode, scancode: scanCode, down: down);
}
/// Send key stroke event.
/// [down] indicates the key's state(down or up).
/// [press] indicates a click event(down and up).