aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common/test_pointing_device_driver.h
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2024-11-23 16:34:32 +0000
committerGitHub <noreply@github.com>2024-11-23 16:34:32 +0000
commit1f7d10902a7e603a47b9291664fcb9ab0b21f690 (patch)
tree55202d0ac9edd5bf977e5b0c95bdcf3b3f859c88 /tests/test_common/test_pointing_device_driver.h
parentd189de24a0797ea32d00b652fe798f5315566ab3 (diff)
Add pointing tests (#24513)
Diffstat (limited to 'tests/test_common/test_pointing_device_driver.h')
-rw-r--r--tests/test_common/test_pointing_device_driver.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/test_common/test_pointing_device_driver.h b/tests/test_common/test_pointing_device_driver.h
new file mode 100644
index 0000000000..ae136b21cd
--- /dev/null
+++ b/tests/test_common/test_pointing_device_driver.h
@@ -0,0 +1,32 @@
+// Copyright 2024 Dasky (@daskygit)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void pd_press_button(uint8_t btn);
+void pd_release_button(uint8_t btn);
+void pd_clear_all_buttons(void);
+
+void pd_set_x(int16_t x);
+void clear_x(void);
+
+void pd_set_y(int16_t y);
+void pd_clear_y(void);
+
+void pd_set_h(int16_t h);
+void pd_clear_h(void);
+
+void pd_set_v(int16_t v);
+void pd_clear_v(void);
+
+void pd_clear_movement(void);
+
+void pd_set_init(bool success);
+
+#ifdef __cplusplus
+}
+#endif