My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
SDL_MouseButtonEvent Struct Reference

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

#include <SDL_events.h>

Public Attributes

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

Detailed Description

Mouse button event structure (event.button.*)

Member Data Documentation

Uint8 SDL_MouseButtonEvent::button

The mouse button index

Uint8 SDL_MouseButtonEvent::state

::SDL_PRESSED or ::SDL_RELEASED

Uint32 SDL_MouseButtonEvent::type
Uint32 SDL_MouseButtonEvent::which

The mouse instance id, or SDL_TOUCH_MOUSEID

Uint32 SDL_MouseButtonEvent::windowID

The window with mouse focus, if any

Sint32 SDL_MouseButtonEvent::x

X coordinate, relative to window

Sint32 SDL_MouseButtonEvent::y

Y coordinate, relative to window


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