2026-USB-Maitre/hid_app.h

30 lines
564 B
C

#include <stdlib.h>
struct gamepad_data_t{
uint32_t temps_ms;
uint8_t joystick_x_gauche;
uint8_t joystick_y_gauche;
uint8_t joystick_x_droit;
uint8_t joystick_y_droit;
uint8_t gachette_gauche;
uint8_t gachette_droite;
uint8_t dpad;
bool bouton_A;
bool bouton_B;
bool bouton_X;
bool bouton_Y;
bool bouton_Start;
bool bouton_Select;
bool bouton_L;
bool bouton_L2;
bool bouton_R;
bool bouton_R2;
bool bouton_joystick_gauche;
bool bouton_joystick_droit;
};
bool gamepad_connecte();
struct gamepad_data_t get_gamepad_data();