Manage a controller motion event. More...
#include <NRE_MotionEvent.hpp>
Public Member Functions | |
MotionEvent ()=delete | |
MotionEvent (ButtonCode c, Math::Point2D< unsigned int > const &pos) | |
MotionEvent (MotionEvent const &e)=default | |
MotionEvent (MotionEvent &&e)=default | |
~MotionEvent ()=default | |
ButtonCode | getCode () const |
Math::Point2D< unsigned int > const & | getPosition () const |
bool | isCode (ButtonCode c) const |
MotionEvent & | operator= (MotionEvent const &e)=default |
MotionEvent & | operator= (MotionEvent &&e)=default |
bool | operator== (MotionEvent const &e) const |
Manage a controller motion event.
|
delete |
Default constructor
NRE::Event::MotionEvent::MotionEvent | ( | ButtonCode | c, |
Math::Point2D< unsigned int > const & | pos | ||
) |
Construct the event
c | the button code |
pos | the curosr position |
|
default |
Copy e into this
e | the motion event to copy |
|
default |
Move e into this
e | the motion event to move |
|
default |
MotionEvent Deconstructor
ButtonCode NRE::Event::MotionEvent::getCode | ( | ) | const |
Math::Point2D<unsigned int> const& NRE::Event::MotionEvent::getPosition | ( | ) | const |
bool NRE::Event::MotionEvent::isCode | ( | ButtonCode | c | ) | const |
Compare the event code to the given one
c | a button code |
|
default |
Copy e into this
e | the object to copy into this |
|
default |
Copy e into this
e | the object to copy into this |
bool NRE::Event::MotionEvent::operator== | ( | MotionEvent const & | e | ) | const |
Equality test between this and an object
e | the other object |