My Project
Loading...
Searching...
No Matches
SDL_MouseButtonEvent Struct Reference

Mouse button event structure (event.button.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
Uint32 windowID
 
Uint32 which
 
Uint8 button
 
Uint8 state
 
Uint8 clicks
 
Uint8 padding1
 
Sint32 x
 
Sint32 y
 

Detailed Description

Mouse button event structure (event.button.*)

Field Documentation

◆ button

Uint8 button

The mouse button index

◆ clicks

Uint8 clicks

1 for single-click, 2 for double-click, etc.

◆ state

Uint8 state

SDL_PRESSED or SDL_RELEASED

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

◆ which

Uint32 which

The mouse instance id, or SDL_TOUCH_MOUSEID

◆ windowID

Uint32 windowID

The window with mouse focus, if any

◆ x

Sint32 x

X coordinate, relative to window

◆ y

Sint32 y

Y coordinate, relative to window


The documentation for this struct was generated from the following file: