openMSX
Classes | Public Member Functions | Static Public Member Functions | List of all members
openmsx::InputEventGenerator Class Referencefinal

#include <InputEventGenerator.hh>

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

Public Member Functions

 InputEventGenerator (const InputEventGenerator &)=delete
 
InputEventGeneratoroperator= (const InputEventGenerator &)=delete
 
 InputEventGenerator (CommandController &commandController, EventDistributor &eventDistributor, GlobalSettings &globalSettings)
 
 ~InputEventGenerator ()
 
void wait ()
 Wait for event(s) and handle it. More...
 
void setKeyRepeat (bool enable)
 Enable or disable keyboard event repeats. More...
 
void reinit ()
 This functions shouldn't be needed, but in the SDL library input and video or closely coupled (sigh). More...
 
BooleanSettinggetGrabInput ()
 Input Grab on or off. 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)
 

Detailed Description

Definition at line 18 of file InputEventGenerator.hh.

Constructor & Destructor Documentation

openmsx::InputEventGenerator::InputEventGenerator ( const InputEventGenerator )
delete
openmsx::InputEventGenerator::InputEventGenerator ( CommandController commandController,
EventDistributor eventDistributor,
GlobalSettings globalSettings 
)
openmsx::InputEventGenerator::~InputEventGenerator ( )

Member Function Documentation

BooleanSetting& openmsx::InputEventGenerator::getGrabInput ( )
inline
bool openmsx::InputEventGenerator::joystickGetButton ( SDL_Joystick *  joystick,
int  button 
)
static
int openmsx::InputEventGenerator::joystickNumButtons ( SDL_Joystick *  joystick)
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 403 of file InputEventGenerator.cc.

References PLATFORM_ANDROID.

Referenced by getGrabInput(), openmsx::JoyMega::registerAll(), openmsx::Joystick::registerAll(), openmsx::JoyState::serialize(), and openmsx::JoyMega::write().

InputEventGenerator& openmsx::InputEventGenerator::operator= ( const InputEventGenerator )
delete
void openmsx::InputEventGenerator::poll ( )
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 56 of file InputEventGenerator.cc.

References setKeyRepeat().

Referenced by InputEventGenerator().

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

Wait for event(s) and handle it.

This method should be called from the main thread.

Definition at line 62 of file InputEventGenerator.cc.

References poll().


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