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

OSD events are triggered by other events. More...

#include <Event.hh>

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

Public Types

enum  {
  LEFT_BUTTON , RIGHT_BUTTON , UP_BUTTON , DOWN_BUTTON ,
  A_BUTTON , B_BUTTON
}
 

Public Member Functions

unsigned getButton () const
 
const EventgetOrigEvent () const
 Get the event that actually triggered the creation of this event. More...
 
- Public Member Functions inherited from openmsx::TimedEvent
uint64_t getRealTime () const
 

Protected Member Functions

 OsdControlEvent (unsigned button_, Event origEvent_)
 

Detailed Description

OSD events are triggered by other events.

They aggregate keyboard and joystick events into one set of events that can be used to e.g. control OSD elements.

Definition at line 320 of file Event.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
LEFT_BUTTON 
RIGHT_BUTTON 
UP_BUTTON 
DOWN_BUTTON 
A_BUTTON 
B_BUTTON 

Definition at line 323 of file Event.hh.

Constructor & Destructor Documentation

◆ OsdControlEvent()

openmsx::OsdControlEvent::OsdControlEvent ( unsigned  button_,
Event  origEvent_ 
)
inlineprotected

Definition at line 335 of file Event.hh.

Member Function Documentation

◆ getButton()

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

Definition at line 326 of file Event.hh.

◆ getOrigEvent()

const Event& openmsx::OsdControlEvent::getOrigEvent ( ) const
inline

Get the event that actually triggered the creation of this event.

Typically this will be a keyboard or joystick event. This could also return nullptr (after a toString/fromString conversion). For the current use (key-repeat) this is ok.

Definition at line 332 of file Event.hh.


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