joystick.c 442 B

12345678910111213
  1. #include "joystick.h"
  2. joystick_t joystick_status = {.buttons = {0},
  3. .axes =
  4. {
  5. #if JOYSTICK_AXES_COUNT > 0
  6. 0
  7. #endif
  8. },
  9. .status = 0};
  10. // array defining the reading of analog values for each axis
  11. __attribute__((weak)) joystick_config_t joystick_axes[JOYSTICK_AXES_COUNT] = {};