Skip to content

Commit 3153ea8

Browse files
Update test_keyboard.cpp
1 parent f47e795 commit 3153ea8

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

code/tests/cases/test_keyboard.cpp

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ FOSSIL_TEST_CASE(cpp_test_mouse_register_and_unregister) {
7777
fossil::io::Mouse mouse;
7878

7979
fossil_io_mouse_event_t event = {
80-
.x = 100,
81-
.y = 200,
82-
.button = 1,
83-
.shift = 1,
84-
.ctrl = 0,
85-
.alt = 1
80+
100,
81+
200,
82+
1,
83+
1,
84+
0,
85+
1
8686
};
8787

8888
fossil_io_mouse_callback_t callback = (fossil_io_mouse_callback_t)0x2;
@@ -98,12 +98,12 @@ FOSSIL_TEST_CASE(cpp_test_mouse_clear_bindings) {
9898
fossil::io::Mouse mouse;
9999

100100
fossil_io_mouse_event_t event = {
101-
.x = 150,
102-
.y = 250,
103-
.button = 2,
104-
.shift = 0,
105-
.ctrl = 1,
106-
.alt = 0
101+
150,
102+
250,
103+
2,
104+
0,
105+
1,
106+
0
107107
};
108108

109109
fossil_io_mouse_callback_t callback = (fossil_io_mouse_callback_t)0x2;
@@ -117,12 +117,12 @@ FOSSIL_TEST_CASE(cpp_test_mouse_poll_events) {
117117
fossil::io::Mouse mouse;
118118

119119
fossil_io_mouse_event_t event = {
120-
.x = 120,
121-
.y = 180,
122-
.button = 0,
123-
.shift = 0,
124-
.ctrl = 0,
125-
.alt = 0
120+
120,
121+
180,
122+
0,
123+
0,
124+
0,
125+
0
126126
};
127127

128128
fossil_io_mouse_callback_t callback = (fossil_io_mouse_callback_t)0x2;
@@ -140,13 +140,13 @@ FOSSIL_TEST_CASE(cpp_test_touch_register_and_unregister) {
140140
fossil::io::Touch touch;
141141

142142
fossil_io_touch_event_t event = {
143-
.x = 400,
144-
.y = 300,
145-
.touch_id = 1,
146-
.action = 0,
147-
.shift = 0,
148-
.ctrl = 1,
149-
.alt = 0
143+
400,
144+
300,
145+
1,
146+
0,
147+
0,
148+
1,
149+
0
150150
};
151151

152152
fossil_io_touch_callback_t callback = (fossil_io_touch_callback_t)0x3;
@@ -162,13 +162,13 @@ FOSSIL_TEST_CASE(cpp_test_touch_clear_bindings) {
162162
fossil::io::Touch touch;
163163

164164
fossil_io_touch_event_t event = {
165-
.x = 500,
166-
.y = 600,
167-
.touch_id = 2,
168-
.action = 1,
169-
.shift = 1,
170-
.ctrl = 0,
171-
.alt = 1
165+
500,
166+
600,
167+
2,
168+
1,
169+
1,
170+
0,
171+
1
172172
};
173173

174174
fossil_io_touch_callback_t callback = (fossil_io_touch_callback_t)0x3;
@@ -182,13 +182,13 @@ FOSSIL_TEST_CASE(cpp_test_touch_poll_events) {
182182
fossil::io::Touch touch;
183183

184184
fossil_io_touch_event_t event = {
185-
.x = 700,
186-
.y = 800,
187-
.touch_id = 3,
188-
.action = 2,
189-
.shift = 1,
190-
.ctrl = 1,
191-
.alt = 0
185+
700,
186+
800,
187+
3,
188+
2,
189+
1,
190+
1,
191+
0
192192
};
193193

194194
fossil_io_touch_callback_t callback = (fossil_io_touch_callback_t)0x3;

0 commit comments

Comments
 (0)