Home
last modified time | relevance | path

Searched refs:last_events (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/subsys/input/longpress/src/
Dmain.c23 static struct input_event last_events[2]; variable
30 memcpy(&last_events[1], &last_events[0], sizeof(struct input_event)); in test_cb()
31 memcpy(&last_events[0], evt, sizeof(struct input_event)); in test_cb()
66 zassert_equal(last_events[1].type, INPUT_EV_KEY); in ZTEST()
67 zassert_equal(last_events[1].code, INPUT_KEY_A); in ZTEST()
68 zassert_equal(last_events[1].value, 1); in ZTEST()
69 zassert_equal(last_events[0].type, INPUT_EV_KEY); in ZTEST()
70 zassert_equal(last_events[0].code, INPUT_KEY_A); in ZTEST()
71 zassert_equal(last_events[0].value, 0); in ZTEST()
79 zassert_equal(last_events[1].type, INPUT_EV_KEY); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/input/double_tap/src/
Dmain.c21 static struct input_event last_events[2]; variable
28 memcpy(&last_events[1], &last_events[0], sizeof(struct input_event)); in test_cb()
29 memcpy(&last_events[0], evt, sizeof(struct input_event)); in test_cb()
54 zassert_equal(last_events[1].type, INPUT_EV_KEY); in ZTEST()
55 zassert_equal(last_events[1].code, INPUT_KEY_X); in ZTEST()
56 zassert_equal(last_events[1].value, 1); in ZTEST()
57 zassert_equal(last_events[0].type, INPUT_EV_KEY); in ZTEST()
58 zassert_equal(last_events[0].code, INPUT_KEY_X); in ZTEST()
59 zassert_equal(last_events[0].value, 0); in ZTEST()
70 zassert_equal(last_events[1].type, INPUT_EV_KEY); in ZTEST()
[all …]