MCPcopy Create free account
hub / github.com/emberian/evdev / key_event

Function key_event

tests/common/mod.rs:13–15  ·  view source on GitHub ↗
(key: KeyCode, key_state: i32)

Source from the content-addressed store, hash-verified

11}
12
13pub fn key_event(key: KeyCode, key_state: i32) -> InputEvent {
14 InputEvent::new(EventType::KEY.0, key.code(), key_state)
15}
16
17pub fn get_test_device() -> std::io::Result<(Device, VirtualDevice)> {
18 let (name, output) = get_device()?;

Callers 2

test_get_key_stateFunction · 0.85
test_compensate_keysFunction · 0.85

Calls 1

codeMethod · 0.45

Tested by 2

test_get_key_stateFunction · 0.68
test_compensate_keysFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…