openMSX
Public Member Functions | List of all members
openmsx::JoystickHatEvent Class Referencefinal

#include <InputEvents.hh>

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

Public Member Functions

 JoystickHatEvent (unsigned joystick, unsigned hat, unsigned value)
 
unsigned getHat () const
 
unsigned 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...
 

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 186 of file InputEvents.hh.

Constructor & Destructor Documentation

◆ JoystickHatEvent()

openmsx::JoystickHatEvent::JoystickHatEvent ( unsigned  joystick,
unsigned  hat,
unsigned  value 
)

Definition at line 249 of file InputEvents.cc.

Member Function Documentation

◆ getHat()

unsigned openmsx::JoystickHatEvent::getHat ( ) const
inline

Definition at line 190 of file InputEvents.hh.

Referenced by toTclList().

◆ getValue()

unsigned openmsx::JoystickHatEvent::getValue ( ) const
inline

Definition at line 191 of file InputEvents.hh.

References openmsx::Event::toTclList().

Referenced by toTclList().

◆ toTclList()

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

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

Implements openmsx::Event.

Definition at line 255 of file InputEvents.cc.

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


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