openMSX
|
#include <InputEvents.hh>
Public Member Functions | |
JoystickAxisMotionEvent (unsigned joystick, unsigned axis, int value) | |
unsigned | getAxis () const |
int | getValue () const |
TclObject | toTclList () const override |
Similar to toString(), but retains the structure of the event. More... | |
![]() | |
unsigned | getJoystick () const |
![]() | |
uint64_t | getRealTime () const |
Query creation time. More... | |
![]() | |
Event (const Event &)=delete | |
Event & | operator= (const Event &)=delete |
EventType | getType () const |
std::string | toString () const |
Get a string representation of this event. More... | |
bool | operator< (const Event &other) const |
bool | operator> (const Event &other) const |
bool | operator<= (const Event &other) const |
bool | operator>= (const Event &other) const |
bool | operator== (const Event &other) const |
bool | operator!= (const Event &other) const |
virtual bool | isRepeatStopper (const Event &) const |
Should 'bind -repeat' be stopped by 'other' event. More... | |
virtual bool | matches (const Event &other) const |
Does this event 'match' the given event. More... | |
Static Public Attributes | |
static constexpr unsigned | X_AXIS = 0 |
static constexpr unsigned | Y_AXIS = 1 |
Additional Inherited Members | |
![]() | |
JoystickEvent (EventType type, unsigned joystick) | |
~JoystickEvent ()=default | |
TclObject | toTclHelper () const |
![]() | |
TimedEvent (EventType type) | |
~TimedEvent ()=default | |
![]() | |
Event (EventType type_) | |
~Event ()=default | |
Definition at line 182 of file InputEvents.hh.
openmsx::JoystickAxisMotionEvent::JoystickAxisMotionEvent | ( | unsigned | joystick, |
unsigned | axis, | ||
int | value | ||
) |
Definition at line 219 of file InputEvents.cc.
|
inline |
Definition at line 189 of file InputEvents.hh.
Referenced by toTclList().
|
inline |
Definition at line 190 of file InputEvents.hh.
Referenced by toTclList().
|
overridevirtual |
Similar to toString(), but retains the structure of the event.
Implements openmsx::Event.
Definition at line 226 of file InputEvents.cc.
References getAxis(), getValue(), tmpStrCat(), and openmsx::JoystickEvent::toTclHelper().
|
staticconstexpr |
Definition at line 185 of file InputEvents.hh.
|
staticconstexpr |
Definition at line 186 of file InputEvents.hh.