-
-
Notifications
You must be signed in to change notification settings - Fork 850
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add json/input_event_queue/halt_7.jsonc
- Loading branch information
Showing
4 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
...st_event_to_virtual_devices/json/expected_post_event_to_virtual_devices_queue/halt_7.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[ | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [ | ||
"left_control" | ||
] | ||
}, | ||
"time_stamp": 5, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 10, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "f17" | ||
} | ||
], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 15, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 20, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [ | ||
"left_control" | ||
] | ||
}, | ||
"time_stamp": 25, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "tab" | ||
} | ||
], | ||
"modifiers": [ | ||
"left_control" | ||
] | ||
}, | ||
"time_stamp": 30, | ||
"type": "keyboard_input" | ||
} | ||
] |
108 changes: 108 additions & 0 deletions
108
tests/src/post_event_to_virtual_devices/json/input_event_queue/halt_7.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
[ | ||
// Send events: | ||
// - left_control key_down | ||
// - f16 key_down | ||
// - f16 key_up | ||
// - tab key_down | ||
// | ||
// Expected result: | ||
// - left_control key_down | ||
// - left_control key_up | ||
// - f17 key_down | ||
// - f17 key_up | ||
// - left_control key_down | ||
// - tab key_down | ||
|
||
// left_control key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "left_control" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 2 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "left_control" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// f16 key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f16" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 4 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f16" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// f16 key_up | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f16" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 6 | ||
}, | ||
"event_type": "key_up", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f16" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// tab key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "tab" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 8 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "tab" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters