openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::JoystickButtonEvent Class Reference

#include <InputEvents.hh>

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

Public Member Functions

unsigned getButton () const
 
- 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...
 
virtual TclObject toTclList () const =0
 Similar to toString(), but retains the structure of the 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...
 

Protected Member Functions

 JoystickButtonEvent (EventType type, unsigned joystick, unsigned button)
 
 ~JoystickButtonEvent ()=default
 
TclObject toTclHelper (std::string_view direction) const
 
- 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 140 of file InputEvents.hh.

Constructor & Destructor Documentation

◆ JoystickButtonEvent()

openmsx::JoystickButtonEvent::JoystickButtonEvent ( EventType  type,
unsigned  joystick,
unsigned  button 
)
protected

Definition at line 176 of file InputEvents.cc.

◆ ~JoystickButtonEvent()

openmsx::JoystickButtonEvent::~JoystickButtonEvent ( )
protecteddefault

Member Function Documentation

◆ getButton()

unsigned openmsx::JoystickButtonEvent::getButton ( ) const
inline

Definition at line 143 of file InputEvents.hh.

Referenced by toTclHelper().

◆ toTclHelper()

TclObject openmsx::JoystickButtonEvent::toTclHelper ( std::string_view  direction) const
protected

Definition at line 182 of file InputEvents.cc.

References getButton(), strCat(), and openmsx::JoystickEvent::toTclHelper().


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