|
openMSX
|
#include <InputEventGenerator.hh>


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). | |
| BooleanSetting & | getGrabInput () 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 () | |
Definition at line 20 of file InputEventGenerator.hh.
| openmsx::InputEventGenerator::InputEventGenerator | ( | CommandController & | commandController, |
| EventDistributor & | eventDistributor | ||
| ) |
Definition at line 32 of file InputEventGenerator.cc.
References openmsx::OPENMSX_FOCUS_EVENT, openmsx::OPENMSX_POLL_EVENT, openmsx::EventDistributor::registerEventListener(), and reinit().
|
virtual |
Definition at line 56 of file InputEventGenerator.cc.
References openmsx::OPENMSX_FOCUS_EVENT, openmsx::OPENMSX_POLL_EVENT, and openmsx::EventDistributor::unregisterEventListener().
|
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.
|
friend |
Definition at line 64 of file InputEventGenerator.hh.
1.8.1.2