ScummVM API documentation
LegacySdlEventSource Class Reference
Inheritance diagram for LegacySdlEventSource:
SdlEventSource Common::EventSource DINGUXSdlEventSource SamsungTVSdlEventSource

Classes

struct  KbdMouse
 

Public Member Functions

bool pollEvent (Common::Event &event) override
 
void checkScreenChange ()
 
- Public Member Functions inherited from SdlEventSource
void setGraphicsManager (SdlGraphicsManager *gMan)
 
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
 

Protected Member Functions

bool handleMouseMotion (SDL_Event &ev, Common::Event &event) override
 
bool handleMouseButtonDown (SDL_Event &ev, Common::Event &event) override
 
bool handleMouseButtonUp (SDL_Event &ev, Common::Event &event) override
 
bool handleJoyAxisMotion (SDL_Event &ev, Common::Event &event) override
 
virtual bool handleAxisToMouseMotion (int16 xAxis, int16 yAxis)
 
int16 computeJoystickMouseSpeedFactor () const
 
void resetKeyboardEmulation (int16 x_max, int16 y_max)
 
- 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 bool remapKey (SDL_Event &ev, Common::Event &event)
 
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 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 handleJoyHatMotion (SDL_Event &ev, Common::Event &event)
 

Keyboard mouse emulation

Disabled by fingolfin 2004-12-18. I am keeping the rest of the code in for now, since the joystick code (or rather, "hack") uses it, too.

KbdMouse _km
 
virtual void updateKbdMouse ()
 
virtual bool handleKbdMouse (Common::Event &event)
 

Additional Inherited Members

- 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
 

Member Function Documentation

◆ pollEvent()

bool LegacySdlEventSource::pollEvent ( Common::Event event)
overridevirtual

Gets and processes SDL events.

Reimplemented from SdlEventSource.

◆ handleAxisToMouseMotion()

virtual bool LegacySdlEventSource::handleAxisToMouseMotion ( int16  xAxis,
int16  yAxis 
)
protectedvirtual

Update the virtual mouse according to a joystick or game controller axis position change

◆ computeJoystickMouseSpeedFactor()

int16 LegacySdlEventSource::computeJoystickMouseSpeedFactor ( ) const
protected

Compute the virtual mouse movement speed factor according to the 'kbdmouse_speed' setting. The speed factor is scaled with the display size.

◆ resetKeyboardEmulation()

void LegacySdlEventSource::resetKeyboardEmulation ( int16  x_max,
int16  y_max 
)
protected

Resets keyboard emulation after a video screen change


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