openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::JoystickAxisMotionEvent Class Referencefinal

#include <InputEvents.hh>

Inheritance diagram for openmsx::JoystickAxisMotionEvent:
Inheritance graph
[legend]
Collaboration diagram for openmsx::JoystickAxisMotionEvent:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from openmsx::JoystickEvent
unsigned getJoystick () const
 
- Public Member Functions inherited from openmsx::TimedEvent
uint64_t getRealTime () const
 Query creation time. More...
 
- Public Member Functions inherited from openmsx::Event
 Event (const Event &)=delete
 
Eventoperator= (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 const unsigned X_AXIS = 0
 
static const unsigned Y_AXIS = 1
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::JoystickEvent
 JoystickEvent (EventType type, unsigned joystick)
 
 ~JoystickEvent ()=default
 
TclObject toTclHelper () const
 
- Protected Member Functions inherited from openmsx::TimedEvent
 TimedEvent (EventType type)
 
 ~TimedEvent ()=default
 
- Protected Member Functions inherited from openmsx::Event
 Event (EventType type_)
 
 ~Event ()=default
 

Detailed Description

Definition at line 169 of file InputEvents.hh.

Constructor & Destructor Documentation

◆ JoystickAxisMotionEvent()

openmsx::JoystickAxisMotionEvent::JoystickAxisMotionEvent ( unsigned  joystick,
unsigned  axis,
int  value 
)

Definition at line 225 of file InputEvents.cc.

Member Function Documentation

◆ getAxis()

unsigned openmsx::JoystickAxisMotionEvent::getAxis ( ) const
inline

Definition at line 176 of file InputEvents.hh.

Referenced by toTclList().

◆ getValue()

int openmsx::JoystickAxisMotionEvent::getValue ( ) const
inline

Definition at line 177 of file InputEvents.hh.

References openmsx::Event::toTclList().

Referenced by toTclList().

◆ toTclList()

TclObject openmsx::JoystickAxisMotionEvent::toTclList ( ) const
overridevirtual

Similar to toString(), but retains the structure of the event.

Implements openmsx::Event.

Definition at line 232 of file InputEvents.cc.

References getAxis(), getValue(), strCat(), and openmsx::JoystickEvent::toTclHelper().

Member Data Documentation

◆ X_AXIS

const unsigned openmsx::JoystickAxisMotionEvent::X_AXIS = 0
static

Definition at line 172 of file InputEvents.hh.

◆ Y_AXIS

const unsigned openmsx::JoystickAxisMotionEvent::Y_AXIS = 1
static

Definition at line 173 of file InputEvents.hh.


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