Public Member Functions | |
OSystem_Android (int audio_sample_rate, int audio_buffer_size) | |
void | initBackend () override |
void | engineInit () override |
void | engineDone () override |
void | updateStartSettings (const Common::String &executable, Common::String &command, Common::StringMap &startSettings, Common::StringArray &additionalArgs) override |
bool | hasFeature (OSystem::Feature f) override |
void | setFeatureState (OSystem::Feature f, bool enable) override |
bool | getFeatureState (OSystem::Feature f) override |
void | pushEvent (int type, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6) |
void | pushEvent (const Common::Event &event) |
void | pushEvent (const Common::Event &event1, const Common::Event &event2) |
void | pushDelayedTouchMouseBtnEvents () |
TouchControls & | getTouchControls () |
void | applyTouchSettings (bool _3dMode, bool overlayShown) |
void | setupTouchMode (int oldValue, int newValue) |
void | applyOrientationSettings () |
void | updateOnScreenControls () |
bool | pollEvent (Common::Event &event) override |
Common::HardwareInputSet * | getHardwareInputSet () override |
Common::KeymapArray | getGlobalKeymaps () override |
Common::KeymapperDefaultBindings * | getKeymapperDefaultBindings () override |
Common::Path | getDefaultConfigFileName () override |
Common::Path | getDefaultLogFileName () override |
void | registerDefaultSettings (const Common::String &target) const override |
GUI::OptionsContainerWidget * | buildBackendOptionsWidget (GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const override |
void | applyBackendSettings () override |
uint32 | getMillis (bool skipRecord=false) override |
void | delayMillis (uint msecs) override |
Common::MutexInternal * | createMutex () override |
void | quit () override |
void | setWindowCaption (const Common::U32String &caption) override |
Audio::Mixer * | getMixer () override |
void | getTimeAndDate (TimeDate &td, bool skipRecord=false) const override |
void | logMessage (LogMessageType::Type type, const char *message) override |
void | addSysArchivesToSearchSet (Common::SearchSet &s, int priority=0) override |
bool | openUrl (const Common::String &url) override |
bool | hasTextInClipboard () override |
Common::U32String | getTextFromClipboard () override |
bool | setTextInClipboard (const Common::U32String &text) override |
bool | isConnectionLimited () override |
Common::String | getSystemLanguage () const override |
const OSystem::GraphicsMode * | getSupportedGraphicsModes () const override |
int | getDefaultGraphicsMode () const override |
bool | setGraphicsMode (int mode, uint flags) override |
int | getGraphicsMode () const override |
OpenGL::ContextType | getOpenGLType () const override |
virtual const char *const * | buildHelpDialogData () override |
Public Member Functions inherited from ModularGraphicsBackend | |
GraphicsManager * | getGraphicsManager () |
bool | setShader (const Common::Path &name) override final |
const GraphicsMode * | getSupportedStretchModes () const override final |
int | getDefaultStretchMode () const override final |
bool | setStretchMode (int mode) override final |
int | getStretchMode () const override final |
uint | getDefaultScaler () const override final |
uint | getDefaultScaleFactor () const override final |
bool | setScaler (uint mode, int factor) override final |
uint | getScaler () const override final |
uint | getScaleFactor () const override final |
void | initSize (uint width, uint height, const Graphics::PixelFormat *format=NULL) override final |
void | initSizeHint (const Graphics::ModeList &modes) override final |
int | getScreenChangeID () const override final |
void | beginGFXTransaction () override final |
OSystem::TransactionError | endGFXTransaction () override final |
int16 | getHeight () override final |
int16 | getWidth () override final |
PaletteManager * | getPaletteManager () override final |
void | copyRectToScreen (const void *buf, int pitch, int x, int y, int w, int h) override final |
Graphics::Surface * | lockScreen () override final |
void | unlockScreen () override final |
void | fillScreen (uint32 col) override final |
void | fillScreen (const Common::Rect &r, uint32 col) override final |
void | updateScreen () override final |
void | setShakePos (int shakeXOffset, int shakeYOffset) override final |
void | setFocusRectangle (const Common::Rect &rect) override final |
void | clearFocusRectangle () override final |
void | showOverlay (bool inGUI) override final |
void | hideOverlay () override final |
bool | isOverlayVisible () const override final |
Graphics::PixelFormat | getOverlayFormat () const override final |
void | clearOverlay () override final |
void | grabOverlay (Graphics::Surface &surface) override final |
void | copyRectToOverlay (const void *buf, int pitch, int x, int y, int w, int h) override final |
int16 | getOverlayHeight () override final |
int16 | getOverlayWidth () override final |
float | getHiDPIScreenFactor () const override final |
bool | showMouse (bool visible) override final |
void | warpMouse (int x, int y) override final |
void | setMouseCursor (const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale=false, const Graphics::PixelFormat *format=NULL, const byte *mask=NULL) override final |
void | setCursorPalette (const byte *colors, uint start, uint num) override final |
bool | lockMouse (bool lock) override final |
void | displayMessageOnOSD (const Common::U32String &msg) override final |
void | displayActivityIconOnOSD (const Graphics::Surface *icon) override final |
void | saveScreenshot () override final |
Public Member Functions inherited from BaseBackend | |
bool | setScaler (const char *name, int factor) override final |
Public Member Functions inherited from OSystem | |
void | destroy () |
virtual void | init () |
bool | backendInitialized () const |
virtual void | taskStarted (Task) |
virtual void | taskFinished (Task) |
bool | setGraphicsMode (const char *name) |
Graphics::PixelFormat | getScreenFormat () const |
Common::List< Graphics::PixelFormat > | getSupportedFormats () const |
virtual Common::Array< uint > | getSupportedAntiAliasingLevels () const |
bool | setStretchMode (const char *name) |
virtual uint32 | getDoubleClickTime () const |
virtual Common::TimerManager * | getTimerManager () |
Common::EventManager * | getEventManager () |
AudioCDManager * | getAudioCDManager () |
virtual void | fatalError () |
virtual Common::SaveFileManager * | getSavefileManager () |
virtual Common::TextToSpeechManager * | getTextToSpeechManager () |
virtual Common::DialogManager * | getDialogManager () |
virtual DLC::Store * | getDLCStore () |
virtual FilesystemFactory * | getFilesystemFactory () |
virtual Common::SeekableReadStream * | createConfigReadStream () |
virtual Common::WriteStream * | createConfigWriteStream () |
virtual void | messageBox (LogMessageType::Type type, const char *message) |
virtual bool | displayLogFile () |
Additional Inherited Members | |
Protected Attributes inherited from ModularGraphicsBackend | |
GraphicsManager * | _graphicsManager |
Protected Attributes inherited from OSystem | |
AudioCDManager * | _audiocdManager |
Common::EventManager * | _eventManager |
Common::TimerManager * | _timerManager |
Common::SaveFileManager * | _savefileManager |
Common::TextToSpeechManager * | _textToSpeechManager |
Common::DialogManager * | _dialogManager |
FilesystemFactory * | _fsFactory |
DLC::Store * | _dlcStore |
Common::U32String | _clipboard |
bool | _dummyUnused |
|
overridevirtual |
The following method is called once, from main.cpp, after all config data (including command line params etc.) is fully loaded.
Reimplemented from BaseBackend.
|
overridevirtual |
Allow the backend to perform engine-specific initialization.
Called just before the engine is run.
Reimplemented from OSystem.
|
overridevirtual |
Allow the backend to perform engine-specific deinitialization.
Called after the engine finishes.
Reimplemented from OSystem.
|
overridevirtual |
Allow the backend to customize the start settings, such as for example starting automatically a game under certain circumstances.
This function is called after the command line parameters have been parsed, and thus the initial value of command and settings will reflect those.
The default implementation checks if the executable name is "scummvm-auto" or if a file named "scummvm-autorun" sits next to it to enable autorun mode.
Reimplemented from OSystem.
|
overridevirtual |
Determine whether the backend supports the specified feature.
Reimplemented from ModularGraphicsBackend.
|
overridevirtual |
Enable or disable the specified feature.
For example, this may be used to enable fullscreen mode or to deactivate aspect correction, etc.
Reimplemented from ModularGraphicsBackend.
|
overridevirtual |
Query the state of the specified feature.
For example, test whether fullscreen mode is active or not.
Reimplemented from ModularGraphicsBackend.
|
overridevirtual |
Query an event from the source.
event | Reference to the event struct where the event should be stored. |
true | If an event was polled, false otherwise. |
Implements Common::EventSource.
|
overridevirtual |
Register hardware inputs with keymapper.
For more information, see keymapper.
Reimplemented from OSystem.
|
overridevirtual |
Return a platform-specific global keymap.
The caller will use and delete the return object.
For more information, see keymapper.
Reimplemented from OSystem.
|
overridevirtual |
Return platform-specific default keybindings.
For more information, see keymapper.
Reimplemented from OSystem.
|
overridevirtual |
Get the default file name (or even path) where the user configuration of ScummVM will be saved.
Note that not all ports can use this.
Reimplemented from OSystem.
|
overridevirtual |
Get the default file name (or even path) where the scummvm.log will be saved.
Note that not all ports can use this.
Reimplemented from OSystem.
|
overridevirtual |
Register the default values for the settings the backend uses into the configuration manager.
target | name of a config manager target |
Reimplemented from OSystem.
|
overridevirtual |
Return a GUI widget container for configuring the specified target options.
The returned widget is shown in the Backend tab in the options dialog. Backends can build custom options dialogs.
Backends that don't want to have a Backend tab in the options dialog can return nullptr.
boss | the widget / dialog the returned widget is a child of |
name | the name the returned widget must use |
target | name of a config manager target |
Reimplemented from OSystem.
|
overridevirtual |
Notify the backend that the settings editable from the game tab in the options dialog may have changed and that they need to be applied if necessary.
Reimplemented from OSystem.
|
overridevirtual |
Get the number of milliseconds since the program was started.
skipRecord | Skip recording of this value by the event recorder. This might be needed particularly when we are in an on-screen GUI loop where the player can pause the recording. |
Implements OSystem.
|
overridevirtual |
Delay/sleep for the specified amount of milliseconds.
Implements OSystem.
|
overridevirtual |
|
overridevirtual |
Quit (exit) the application.
Implements OSystem.
|
overridevirtual |
Set a window caption or any other comparable status display to the given value.
caption | The window caption to use. |
Reimplemented from OSystem.
|
overridevirtual |
|
overridevirtual |
Get the current time and date, in the local timezone.
On many systems, this corresponds to the combination of time() and localtime().
Implements OSystem.
|
overridevirtual |
Log the given message.
It is up to the backend where to log the different messages. The backend should aim at using a non-buffered output for it, so that no log data is lost in case of a crash.
The default implementation outputs them on stdout/stderr.
type | Type of the message. |
message | The message itself. |
Implements OSystem.
|
overridevirtual |
Add system-specific Common::Archive objects to the given SearchSet. For example, on Unix, the directory corresponding to DATA_PATH (if set), or, on macOS, the 'Resource' dir in the app bundle.
s | SearchSet to which the system-specific dirs, if any, are added. |
priority | Priority with which those dirs are added. |
Reimplemented from OSystem.
|
overridevirtual |
Open the given URL in the default browser (if available on the target system).
url | The URL to open. |
Reimplemented from OSystem.
|
overridevirtual |
Check whether there is text available in the clipboard.
The kFeatureClipboardSupport feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented from OSystem.
|
overridevirtual |
Return clipboard contents as a string.
The kFeatureClipboardSupport feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented from OSystem.
|
overridevirtual |
Set the content of the clipboard to the given string.
The kFeatureClipboardSupport feature flag can be used to test whether this call has been implemented by the active backend.
Reimplemented from OSystem.
|
overridevirtual |
Return whether the connection is limited (if available on the target system).
Reimplemented from OSystem.
|
overridevirtual |
Return the language of the system.
This returns the currently set language of the system on which ScummVM is run.
The format is an ISO 639 language code, optionally followed by an ISO 3166-1 country code in the form language_country.
For information about POSIX locales, see the following link: https://en.wikipedia.org/wiki/ISO_639 https://en.wikipedia.org/wiki/ISO_3166-1
The default implementation returns "en_US".
Reimplemented from OSystem.
|
overridevirtual |
Retrieve a list of all graphics modes supported by this backend.
This can be both video modes as well as graphic filters/scalers. It is completely up to the backend maintainer to decide what is appropriate here and what not. The list is terminated by an all-zero entry.
Reimplemented from ModularGraphicsBackend.
|
overridevirtual |
Return the ID of the 'default' graphics mode. What exactly this means is up to the backend. This mode is set by the client code when no user overrides are present (i.e. if no custom graphics mode is selected using the command line or a config file).
Reimplemented from ModularGraphicsBackend.
|
overridevirtual |
Switch to the specified graphics mode.
If switching to the new mode fails, this method returns false.
The flag 'kGfxModeRender3d' is optional. It allows to switch to 3D-only rendering mode. In this mode, the game engine is allowed to use OpenGL(ES) directly.
mode | ID of the new graphics mode. |
flags | Flags for the new graphics mode. |
Reimplemented from ModularGraphicsBackend.
|
overridevirtual |
Determine which graphics mode is currently active.
Reimplemented from ModularGraphicsBackend.
|
inlineoverridevirtual |
Return the chosen OpenGL type.
This function works even when a 2D graphical manager is active and let to select a proper renderer before changing mode. Implementation having feature kFeatureOpenGLForGame are expected to override this function.
Reimplemented from OSystem.
|
overridevirtual |
Return list of strings used for building help dialog
The strings represented in triplets:
The string list is null-terminated.
Reimplemented from OSystem.