SDL_JoyButtonEvent.which

< The joystick instance id

struct SDL_JoyButtonEvent
SDL_JoystickID which;

Meta