SDL_MouseWheelEvent.which

< The mouse instance id in relative mode or 0

struct SDL_MouseWheelEvent
SDL_MouseID which;

Meta