~ruther/qmk_firmware

ref: c0ee3d2c79388187883b1b1b1d1a0b6842acf741 qmk_firmware/quantum/joystick.c -rw-r--r-- 442 bytes
c0ee3d2c — zvecr Merge '51db8baf77e2c0aa5f54d73114e84a33306d7380' as empty 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "joystick.h"

joystick_t joystick_status = {.buttons = {0},
                              .axes =
                                  {
#if JOYSTICK_AXES_COUNT > 0
                                      0
#endif
                                  },
                              .status = 0};

// array defining the reading of analog values for each axis
__attribute__((weak)) joystick_config_t joystick_axes[JOYSTICK_AXES_COUNT] = {};