GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SDL_MOUSEBUTTONEVENT (3)

NAME

SDL_MouseButtonEvent - Mouse button event structure

CONTENTS

STRUCTURE DEFINITION

typedef struct{
  Uint8 type;
  Uint8 button;
  Uint8 state;
  Uint16 x, y;
} SDL_MouseButtonEvent;

STRUCTURE DATA

type SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP
button The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT)
state SDL_PRESSED or SDL_RELEASED
x, y The X/Y coordinates of the mouse at press/release time

DESCRIPTION

SDL_MouseButtonEvent is a member of the 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_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.

SEE ALSO

SDL_Event, SDL_MouseMotionEvent

Search for    or go to Top of page |  Section 3 |  Main Index


SDL SDL_MOUSEBUTTONEVENT (3) Tue 11 Sep 2001, 22:59

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.