openMSX
Public Member Functions | Friends | List of all members
openmsx::InputEventGenerator Class Reference

#include <InputEventGenerator.hh>

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

Public Member Functions

 InputEventGenerator (CommandController &commandController, EventDistributor &eventDistributor)
virtual ~InputEventGenerator ()
void wait ()
 Wait for event(s) and handle it.
void setKeyRepeat (bool enable)
 Enable or disable keyboard event repeats.
void reinit ()
 This functions shouldn't be needed, but in the SDL library input and video or closely coupled (sigh).
BooleanSettinggetGrabInput () const
 Input Grab on or off.

Friends

class EscapeGrabCmd

Additional Inherited Members

- Private Member Functions inherited from openmsx::Observer< Setting >
virtual void update (const Setting &subject)=0
virtual void subjectDeleted (const Setting &)
virtual ~Observer ()
- Private Member Functions inherited from openmsx::EventListener
virtual ~EventListener ()
virtual int signalEvent (const std::shared_ptr< const Event > &event)=0
 This method gets called when an event you are subscribed to occurs.
 EventListener ()

Detailed Description

Definition at line 20 of file InputEventGenerator.hh.

Constructor & Destructor Documentation

openmsx::InputEventGenerator::InputEventGenerator ( CommandController commandController,
EventDistributor eventDistributor 
)
openmsx::InputEventGenerator::~InputEventGenerator ( )
virtual

Member Function Documentation

BooleanSetting& openmsx::InputEventGenerator::getGrabInput ( ) const
inline

Input Grab on or off.

Definition at line 46 of file InputEventGenerator.hh.

Referenced by openmsx::VisibleSurface::VisibleSurface(), and openmsx::VisibleSurface::~VisibleSurface().

void openmsx::InputEventGenerator::reinit ( )

This functions shouldn't be needed, but in the SDL library input and video or closely coupled (sigh).

For example when the video mode is changed we need to reset the keyrepeat and unicode settings.

Definition at line 63 of file InputEventGenerator.cc.

References setKeyRepeat().

Referenced by InputEventGenerator().

void openmsx::InputEventGenerator::setKeyRepeat ( bool  enable)

Enable or disable keyboard event repeats.

Definition at line 112 of file InputEventGenerator.cc.

Referenced by reinit().

void openmsx::InputEventGenerator::wait ( )

Wait for event(s) and handle it.

This method should be called from the main thread.

Definition at line 69 of file InputEventGenerator.cc.

Friends And Related Function Documentation

friend class EscapeGrabCmd
friend

Definition at line 64 of file InputEventGenerator.hh.


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