Query: sdl_mousebuttonevent
OS: suse
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SDL_MouseButtonEvent(3) SDL API Reference SDL_MouseButtonEvent(3)NAMESDL_MouseButtonEvent - Mouse button event structureSTRUCTURE DEFINITIONtypedef struct{ Uint8 type; Uint8 button; Uint8 state; Uint16 x, y; } SDL_MouseButtonEvent;STRUCTURE DATAtype 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 timeDESCRIPTIONSDL_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_Key- boardEvent, 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 ALSOSDL_Event, SDL_MouseMotionEventSDLTue 11 Sep 2001, 22:59 SDL_MouseButtonEvent(3)
Related Man Pages |
---|
sdl_event(3) - opensolaris |
sdl_mousemotionevent(3) - opensolaris |
glutmousefunc(3glut) - redhat |
sdl_event(3) - centos |
glutmousefunc(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Change directory error |
SOCKS proxy & PAM configuration exposure |
A (ksh) Library For and From UNIX.com |
The Future of the PM (Private Message) System at UNIX.com |