Xrb::EventMouseMotion Class Reference

Generated when the mouse moves. More...

#include <xrb_input_events.hpp>

Inheritance diagram for Xrb::EventMouseMotion:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 EventMouseMotion (bool is_left_mouse_button_pressed, bool is_middle_mouse_button_pressed, bool is_right_mouse_button_pressed, ScreenCoordVector2 const &position, ScreenCoordVector2 const &delta, Key::Modifier modifier, Float time)
 Constructs an EventMouseButton from the given parameters.
virtual bool IsMouseMotionEvent () const
 Override of Event::IsMouseMotionEvent to indicate that this is, indeed, a mouse motion event.
ScreenCoordVector2 const & Delta () const
 Returns the mouse's position delta generated by this event.
bool IsLeftMouseButtonPressed () const
 Returns true iff the left mouse button was depressed at the time this event was generated.
bool IsMiddleMouseButtonPressed () const
 Returns true iff the middle mouse button was depressed at the time this event was generated.
bool IsRightMouseButtonPressed () const
 Returns true iff the right mouse button was depressed at the time this event was generated.


Detailed Description

Generated when the mouse moves.

This event contains the mouse motion delta (in addition to EventMouse's position).

Accessors are also provided to check if the left, middle, or right mouse buttons were depressed at the time the event was generated.

Definition at line 413 of file xrb_input_events.hpp.


The documentation for this class was generated from the following files:

Hosted by SourceForge.net Logo -- Generated on Fri Aug 21 21:46:39 2009 for XuqRijBuh by doxygen 1.5.8