Mouse button event structure
For a list of all members of this type, see Sdl.SDL_MouseButtonEvent Members.
System.Object
System.ValueType
Tao.Sdl.Sdl.SDL_MouseButtonEvent
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
SDL_MouseButtonEvent is a member of the Sdl.SDL_Event union and is used when an event of type SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP is reported.
When a mouse button press or release is detected then number of the button pressed (from 1 to 255, with 1 usually being the left button and 2 the right) is placed into button, the position of the mouse when this event occured is stored in the x and the y fields. Like Sdl.SDL_KeyboardEvent, information on whether the event was a press or a release event is stored in both the type and state fields, but this should be obvious.
Struct in SDL_events.h
typedef struct{ Uint8 type; Uint8 button; Uint8 state; Uint16 x, y; } SDL_MouseButtonEvent;
Namespace: Tao.Sdl
Assembly: Tao.Sdl (in Tao.Sdl.dll)
Sdl.SDL_MouseButtonEvent Members | Tao.Sdl Namespace | Sdl.SDL_Event | Sdl.SDL_MouseMotionEvent