Refactor listening keyboard to support switching keyboard modes
This commit is contained in:
parent
7fe2609ffb
commit
7c24f6bb12
3 changed files with 306 additions and 297 deletions
|
|
@ -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::*;
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@ message KeyEvent {
|
|||
string seq = 6;
|
||||
}
|
||||
repeated ControlKey modifiers = 8;
|
||||
uint32 mode = 9;
|
||||
}
|
||||
|
||||
message CursorData {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue