2018-10-17 09:23:20 +00:00
|
|
|
#include "joystick.h"
|
|
|
|
|
2020-01-09 19:29:34 +00:00
|
|
|
joystick_t joystick_status = {.buttons = {0},
|
|
|
|
.axes =
|
|
|
|
{
|
|
|
|
#if JOYSTICK_AXES_COUNT > 0
|
|
|
|
0
|
2018-12-06 23:27:49 +00:00
|
|
|
#endif
|
2020-01-09 19:29:34 +00:00
|
|
|
},
|
|
|
|
.status = 0};
|
2018-10-17 09:23:20 +00:00
|
|
|
|
2020-01-09 19:29:34 +00:00
|
|
|
// array defining the reading of analog values for each axis
|
|
|
|
__attribute__((weak)) joystick_config_t joystick_axes[JOYSTICK_AXES_COUNT] = {};
|