ScummVM API documentation
OPEventSource Class Reference

#include <op-events.h>

Inheritance diagram for OPEventSource:
SdlEventSource Common::EventSource

Protected Member Functions

void ToggleTapMode ()
 
bool handleMouseButtonDown (SDL_Event &ev, Common::Event &event)
 
bool handleMouseButtonUp (SDL_Event &ev, Common::Event &event)
 
bool remapKey (SDL_Event &ev, Common::Event &event)
 
- Protected Member Functions inherited from SdlEventSource
void loadGameControllerMappingFile ()
 
void openJoystick (int joystickIndex)
 
void closeJoystick ()
 
virtual void preprocessEvents (SDL_Event *event)
 
virtual bool dispatchSDLEvent (SDL_Event &ev, Common::Event &event)
 
virtual bool processMouseEvent (Common::Event &event, int x, int y, int relx=0, int rely=0)
 
virtual int mapKey (SDL_Keycode key, SDL_Keymod mod, Uint16 unicode)
 
virtual void SDLModToOSystemKeyFlags (SDL_Keymod mod, Common::Event &event)
 
Common::KeyCode SDLToOSystemKeycode (const SDL_Keycode key)
 
bool handleResizeEvent (Common::Event &event, int w, int h)
 
uint32 obtainUnicode (const SDL_Keysym keySym)
 
SDL_Keycode obtainKeycode (const SDL_Keysym keySym)
 
virtual bool handleKeyDown (SDL_Event &ev, Common::Event &event)
 
virtual bool handleKeyUp (SDL_Event &ev, Common::Event &event)
 
virtual bool handleMouseMotion (SDL_Event &ev, Common::Event &event)
 
virtual bool handleSysWMEvent (SDL_Event &ev, Common::Event &event)
 
virtual int mapSDLJoystickButtonToOSystem (Uint8 sdlButton)
 
virtual bool handleJoyButtonDown (SDL_Event &ev, Common::Event &event)
 
virtual bool handleJoyButtonUp (SDL_Event &ev, Common::Event &event)
 
virtual bool handleJoyAxisMotion (SDL_Event &ev, Common::Event &event)
 
virtual bool handleJoyHatMotion (SDL_Event &ev, Common::Event &event)
 

Protected Attributes

bool _buttonStateL
 
int _tapmodeLevel
 
- Protected Attributes inherited from SdlEventSource
bool _scrollLock
 
bool _engineRunning
 
int _mouseX
 
int _mouseY
 
SDL_Joystick * _joystick
 
int _lastScreenID
 
SdlGraphicsManager_graphicsManager
 
bool _queuedFakeMouseMove
 
Common::Event _fakeMouseMove
 
uint8 _lastHatPosition
 

Additional Inherited Members

- Public Member Functions inherited from SdlEventSource
void setGraphicsManager (SdlGraphicsManager *gMan)
 
virtual bool pollEvent (Common::Event &event)
 
void fakeWarpMouse (const int x, const int y)
 
bool isJoystickConnected () const
 
void setEngineRunning (bool value)
 
- Public Member Functions inherited from Common::EventSource
virtual bool allowMapping () const
 

Detailed Description

Events manager for the OpenPandora.

Member Function Documentation

◆ remapKey()

bool OPEventSource::remapKey ( SDL_Event &  ev,
Common::Event event 
)
protectedvirtual

Remaps key events. This allows platforms to configure their custom keys.

Reimplemented from SdlEventSource.

Member Data Documentation

◆ _buttonStateL

bool OPEventSource::_buttonStateL
protected

Button state for L button modifier


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