mirror of
https://github.com/mfulz/qmk_firmware.git
synced 2025-07-18 03:15:18 +02:00

Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc instead of an output pin from the MCU. Fix joystick report id Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes) Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis. Documentation fixes
14 lines
303 B
C
14 lines
303 B
C
#ifndef PROCESS_JOYSTICK_H
|
|
#define PROCESS_JOYSTICK_H
|
|
|
|
#include <stdint.h>
|
|
#include "quantum.h"
|
|
|
|
bool process_joystick(uint16_t keycode, keyrecord_t *record);
|
|
|
|
void joystick_task(void);
|
|
|
|
bool process_joystick_analogread(void);
|
|
bool process_joystick_analogread_quantum(void);
|
|
|
|
#endif //PROCESS_JOYSTICK_H
|