Public Types | Public Member Functions | Public Attributes

input::MouseEvent Struct Reference

Mouse event (system-neutral). More...

#include <_src_input_event_mouse.hh>

List of all members.

Public Types

enum  eChange { eChange_NONE, eChange_MOVEMENT, eChange_BUTTON }

Public Member Functions

 MouseEvent (void)
 MouseEvent (const eChange change, const Vector2 &pos, const uint buttonNum, const bool buttonState)

Public Attributes

CLASS_CONST uint INVALID_BUTTON = 0xffff
eChange mChange
 what changed (movement, click)
Vector2 mPos
 2D screen position
uint mButtonNum
 which button changed
bool mButtonState
 true:pressed/down false:released/up

Detailed Description

Mouse event (system-neutral).

If change is eChange_MOVEMENT then button members are invalid, v.v.

Mouse position: (0,0) bottom-left of window (w,h) top-right of window (w,h = width,height of window)

When mouse moves outside window, no more mouse events will be generated.


Member Enumeration Documentation

Enumerator:
eChange_NONE 
eChange_MOVEMENT 
eChange_BUTTON 

Constructor & Destructor Documentation

input::MouseEvent::MouseEvent ( void   )  [inline]
input::MouseEvent::MouseEvent ( const eChange  change,
const Vector2 pos,
const uint  buttonNum,
const bool  buttonState 
) [inline]

Member Data Documentation

which button changed

true:pressed/down false:released/up

what changed (movement, click)

2D screen position


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12