summaryrefslogtreecommitdiff
path: root/quantum/joystick.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-03-27 05:38:09 +1100
committerGitHub <noreply@github.com>2022-03-26 18:38:09 +0000
commitc05e8afe454bf3706d69314c251dc5266c557007 (patch)
tree604b8b446d111f9d5307888e9ea61acf8fada14d /quantum/joystick.h
parent71ffb41c9b7c87cbeb2b19bac058717436bcda23 (diff)
downloadqmk_firmware-c05e8afe454bf3706d69314c251dc5266c557007.tar.gz
qmk_firmware-c05e8afe454bf3706d69314c251dc5266c557007.zip
Joystick feature updates (#16732)
* Joystick feature updates * Move new functions to joystick.h * Docs
Diffstat (limited to 'quantum/joystick.h')
-rw-r--r--quantum/joystick.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/quantum/joystick.h b/quantum/joystick.h
index 9156491aca..002df3a6d9 100644
--- a/quantum/joystick.h
+++ b/quantum/joystick.h
@@ -1,8 +1,7 @@
#pragma once
-#include "quantum.h"
-
#include <stdint.h>
+#include "gpio.h"
#ifndef JOYSTICK_BUTTON_COUNT
# define JOYSTICK_BUTTON_COUNT 8
@@ -58,5 +57,7 @@ typedef struct {
extern joystick_t joystick_status;
-// to be implemented in the hid protocol library
-void send_joystick_packet(joystick_t *joystick);
+void joystick_flush(void);
+
+void register_joystick_button(uint8_t button);
+void unregister_joystick_button(uint8_t button);