2020-10-10 02:42:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
2021-03-05 00:35:43 -05:00
|
|
|
#include "GpSystemServices_POSIX.h"
|
2020-10-10 02:42:06 -04:00
|
|
|
#include "GpCoreDefs.h"
|
|
|
|
|
|
2021-03-05 00:35:43 -05:00
|
|
|
class GpSystemServices_Android final : public GpSystemServices_POSIX
|
2020-10-10 02:42:06 -04:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
GpSystemServices_Android();
|
|
|
|
|
|
2020-11-01 20:59:52 -05:00
|
|
|
void *CreateThread(ThreadFunc_t threadFunc, void *context) override;
|
2021-05-09 23:45:27 -04:00
|
|
|
bool Beep() const override;
|
2020-10-12 00:37:32 -04:00
|
|
|
bool IsTouchscreen() const override;
|
|
|
|
|
bool IsUsingMouseAsTouch() const override;
|
|
|
|
|
bool IsTextInputObstructive() const override;
|
2020-11-25 15:09:31 -05:00
|
|
|
bool IsFullscreenPreferred() const override;
|
2021-03-05 01:56:32 -05:00
|
|
|
bool IsFullscreenOnStartup() const override;
|
2021-05-09 23:45:27 -04:00
|
|
|
bool HasNativeFileManager() const override;
|
2021-05-11 00:41:35 -04:00
|
|
|
GpOperatingSystem_t GetOperatingSystem() const override;
|
|
|
|
|
GpOperatingSystemFlavor_t GetOperatingSystemFlavor() const override;
|
2020-11-01 20:59:52 -05:00
|
|
|
unsigned int GetCPUCount() const override;
|
2020-11-02 22:06:38 -05:00
|
|
|
void SetTextInputEnabled(bool isEnabled) override;
|
|
|
|
|
bool IsTextInputEnabled() const override;
|
2020-11-30 18:43:17 -05:00
|
|
|
bool AreFontResourcesSeekable() const override;
|
2020-12-18 00:07:21 -05:00
|
|
|
IGpClipboardContents *GetClipboardContents() const override;
|
|
|
|
|
void SetClipboardContents(IGpClipboardContents *contents) override;
|
2020-11-02 22:06:38 -05:00
|
|
|
|
|
|
|
|
void FlushTextInputEnabled();
|
2020-10-10 02:42:06 -04:00
|
|
|
|
|
|
|
|
static GpSystemServices_Android *GetInstance();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static GpSystemServices_Android ms_instance;
|
2020-11-02 22:06:38 -05:00
|
|
|
|
|
|
|
|
bool m_textInputEnabled;
|
2020-10-10 02:42:06 -04:00
|
|
|
};
|