Skip to content

Commit

Permalink
Add json/input_event_queue/mouse_basic_1.jsonc
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Sep 21, 2023
1 parent ec986af commit 17eb630
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"pointing_input": {
"buttons": [],
"horizontal_wheel": 10,
"vertical_wheel": 236,
"x": 30,
"y": 40
},
"time_stamp": 2,
"type": "pointing_input"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"device_id": 1,
"event": {
"pointing_motion": {
"horizontal_wheel": 10,
"vertical_wheel": 20,
"x": 30,
"y": 40
},
"type": "pointing_motion"
},
"event_origin": "grabbed_device",
"event_time_stamp": {
"time_stamp": 2
},
"event_type": "single",
"lazy": false,
"original_event": {
"pointing_motion": {
"horizontal_wheel": 10,
"vertical_wheel": 20,
"x": 30,
"y": 40
},
"type": "pointing_motion"
},
"validity": true
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"description": "flip vertical_wheel",
"type": "mouse_basic",
"flip": ["vertical_wheel"]
}
]
6 changes: 6 additions & 0 deletions tests/src/post_event_to_virtual_devices/json/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -802,5 +802,11 @@
"rules": ["json/rules/set_variable.jsonc"],
"input_event_queue": "json/input_event_queue/set_variable_2.jsonc",
"expected_post_event_to_virtual_devices_queue": "json/expected_post_event_to_virtual_devices_queue/set_variable_2.jsonc"
},
{
"description": "mouse_basic_1",
"rules": ["json/rules/mouse_basic.jsonc"],
"input_event_queue": "json/input_event_queue/mouse_basic_1.jsonc",
"expected_post_event_to_virtual_devices_queue": "json/expected_post_event_to_virtual_devices_queue/mouse_basic_1.jsonc"
}
]

0 comments on commit 17eb630

Please sign in to comment.