openMSX
|
#include <InputEventGenerator.hh>
Public Member Functions | |
InputEventGenerator (const InputEventGenerator &)=delete | |
InputEventGenerator & | operator= (const InputEventGenerator &)=delete |
InputEventGenerator (CommandController &commandController, EventDistributor &eventDistributor, GlobalSettings &globalSettings) | |
~InputEventGenerator () | |
void | wait () |
Wait for event(s) and handle it. More... | |
BooleanSetting & | getGrabInput () |
Input Grab on or off. More... | |
void | updateGrab (bool grab) |
Must be called when 'grabinput' or 'fullscreen' setting changes. More... | |
void | poll () |
Static Public Member Functions | |
static int | joystickNumButtons (SDL_Joystick *joystick) |
Normally the following two functions simply delegate to SDL_JoystickNumButtons() and SDL_JoystickGetButton(). More... | |
static bool | joystickGetButton (SDL_Joystick *joystick, int button) |
Definition at line 16 of file InputEventGenerator.hh.
|
delete |
openmsx::InputEventGenerator::InputEventGenerator | ( | CommandController & | commandController, |
EventDistributor & | eventDistributor, | ||
GlobalSettings & | globalSettings | ||
) |
Definition at line 17 of file InputEventGenerator.cc.
References openmsx::FOCUS, openmsx::BooleanSetting::getBoolean(), and openmsx::EventDistributor::registerEventListener().
openmsx::InputEventGenerator::~InputEventGenerator | ( | ) |
Definition at line 36 of file InputEventGenerator.cc.
References openmsx::FOCUS, and openmsx::EventDistributor::unregisterEventListener().
|
inline |
Input Grab on or off.
Definition at line 33 of file InputEventGenerator.hh.
Referenced by openmsx::VisibleSurface::VisibleSurface(), and openmsx::VisibleSurface::~VisibleSurface().
|
static |
Definition at line 469 of file InputEventGenerator.cc.
References PLATFORM_ANDROID, and UNREACHABLE.
|
static |
Normally the following two functions simply delegate to SDL_JoystickNumButtons() and SDL_JoystickGetButton().
Except on Android, see comments in .cc for more details.
Definition at line 461 of file InputEventGenerator.cc.
References PLATFORM_ANDROID.
Referenced by openmsx::Joystick::registerAll(), and openmsx::JoyMega::registerAll().
|
delete |
void openmsx::InputEventGenerator::poll | ( | ) |
Definition at line 53 of file InputEventGenerator.cc.
References utf8::unchecked::next(), and std::swap().
Referenced by openmsx::EventDistributor::deliverEvents(), and wait().
void openmsx::InputEventGenerator::updateGrab | ( | bool | grab | ) |
Must be called when 'grabinput' or 'fullscreen' setting changes.
Definition at line 412 of file InputEventGenerator.cc.
void openmsx::InputEventGenerator::wait | ( | ) |
Wait for event(s) and handle it.
This method should be called from the main thread.
Definition at line 41 of file InputEventGenerator.cc.
References poll().