Joystick feature updates (#16732)

* Joystick feature updates

* Move new functions to joystick.h

* Docs
This commit is contained in:
Ryan 2022-03-27 05:38:09 +11:00 committed by GitHub
parent 71ffb41c9b
commit c05e8afe45
Failed to generate hash of commit
10 changed files with 52 additions and 45 deletions

View file

@ -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);