forked from mirrors/qmk_userspace
Joystick feature updates (#16732)
* Joystick feature updates * Move new functions to joystick.h * Docs
This commit is contained in:
parent
71ffb41c9b
commit
c05e8afe45
10 changed files with 52 additions and 45 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue