Refactor listening keyboard to support switching keyboard modes

This commit is contained in:
Asura
2022-07-17 14:14:51 -07:00
Unverified
parent 7fe2609ffb
commit 7c24f6bb12
3 changed files with 306 additions and 297 deletions

View File

@@ -2,7 +2,7 @@ use self::winapi::ctypes::c_int;
use self::winapi::shared::{basetsd::ULONG_PTR, minwindef::*, windef::*};
use self::winapi::um::winbase::*;
use self::winapi::um::winuser::*;
use rdev::{simulate, EventType, EventType::*, Key as RdevKey, SimulateError};
use rdev::{simulate, EventType, Key as RdevKey, SimulateError};
use winapi;
use crate::win::keycodes::*;

View File

@@ -190,6 +190,7 @@ message KeyEvent {
string seq = 6;
}
repeated ControlKey modifiers = 8;
uint32 mode = 9;
}
message CursorData {