31 namespace cinder {
namespace app {
37 MouseEvent(
WindowRef win,
int aInitiator,
int aX,
int aY,
unsigned int aModifiers,
float aWheelIncrement, uint32_t aNativeModifiers )
38 :
Event( win ), mInitiator( aInitiator ), mX( aX ), mY( aY ), mModifiers( aModifiers ), mWheelIncrement( aWheelIncrement ), mNativeModifiers( aNativeModifiers )
42 int getX()
const {
return mX; }
44 int getY()
const {
return mY; }
82 #if (defined( CINDER_MSW ) || defined( CINDER_WINRT ))
92 unsigned int mModifiers;
93 float mWheelIncrement;
94 uint32_t mNativeModifiers;
bool isRightDown() const
Returns whether the right mouse button was pressed during the event.
Definition: MouseEvent.h:56
Represents a mouse event.
Definition: MouseEvent.h:34
bool isLeft() const
Returns whether the initiator for the event was the left mouse button.
Definition: MouseEvent.h:48
Definition: MouseEvent.h:75
bool isAltDown() const
Returns whether the Alt (or Option) key was pressed during the event.
Definition: MouseEvent.h:62
Definition: MouseEvent.h:76
bool isMiddle() const
Returns whether the initiator for the event was the middle mouse button.
Definition: MouseEvent.h:52
int getY() const
Returns the Y coordinate of the mouse event measured in points.
Definition: MouseEvent.h:44
GLXFBConfig Window win
Definition: GLee.h:16730
bool isMetaDown() const
Returns whether the meta key was pressed during the event. Maps to the Windows key on Windows and the...
Definition: MouseEvent.h:66
Definition: MouseEvent.h:85
bool isLeftDown() const
Returns whether the left mouse button was pressed during the event.
Definition: MouseEvent.h:54
bool isRight() const
Returns whether the initiator for the event was the right mouse button.
Definition: MouseEvent.h:50
std::shared_ptr< Window > WindowRef
Definition: Event.h:49
Definition: MouseEvent.h:81
Base class for all Events.
Definition: Event.h:53
bool isControlDown() const
Returns whether the Control key was pressed during the event.
Definition: MouseEvent.h:64
uint32_t getNativeModifiers() const
Returns the platform-native modifier mask.
Definition: MouseEvent.h:73
bool isMiddleDown() const
Returns whether the middle mouse button was pressed during the event.
Definition: MouseEvent.h:58
Definition: MouseEvent.h:80
MouseEvent(WindowRef win, int aInitiator, int aX, int aY, unsigned int aModifiers, float aWheelIncrement, uint32_t aNativeModifiers)
Definition: MouseEvent.h:37
bool isAccelDown() const
Returns whether the accelerator key was pressed during the event. Maps to the Control key on Windows ...
Definition: MouseEvent.h:68
float getWheelIncrement() const
Returns the number of detents the user has wheeled through. Positive values correspond to wheel-up an...
Definition: MouseEvent.h:70
Definition: MouseEvent.h:77
Definition: MouseEvent.h:78
int getX() const
Returns the X coordinate of the mouse event measured in points.
Definition: MouseEvent.h:42
Vec2i getPos() const
Returns the coordinates of the mouse event measured in points.
Definition: MouseEvent.h:46
Definition: MouseEvent.h:79
bool isShiftDown() const
Returns whether the Shift key was pressed during the event.
Definition: MouseEvent.h:60
Vec2< int > Vec2i
Definition: Vector.h:1313
MouseEvent()
Definition: MouseEvent.h:36