#include "SDL_internal.h"
#ifdef SDL_JOYSTICK_EMSCRIPTEN
#include "../SDL_sysjoystick.h"
#include <emscripten/html5.h>
typedef struct SDL_joylist_item
{
int index;
char *name;
char *mapping;
SDL_JoystickID device_instance;
SDL_Joystick *joystick;
int first_hat_button;
int first_trigger_button;
bool triggers_are_buttons;
int nhats;
SDL_GUID guid;
int nbuttons;
int naxes;
double timestamp;
double axis[64]; double analogButton[64];
EM_BOOL digitalButton[64];
Uint8 hat; bool rumble_available;
bool trigger_rumble_available;
Uint16 weak_magnitude_rumble;
Uint16 strong_magnitude_rumble;
Uint16 left_trigger_rumble;
Uint16 right_trigger_rumble;
struct SDL_joylist_item *next;
} SDL_joylist_item;
typedef SDL_joylist_item joystick_hwdata;
#endif