mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Cygwin port
This commit is contained in:
35
AerofoilX/GpSystemServices_X.h
Normal file
35
AerofoilX/GpSystemServices_X.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include "GpSystemServices_POSIX.h"
|
||||
#include "GpCoreDefs.h"
|
||||
|
||||
struct IGpClipboardContents;
|
||||
|
||||
class GpSystemServices_X final : public GpSystemServices_POSIX
|
||||
{
|
||||
public:
|
||||
GpSystemServices_X();
|
||||
~GpSystemServices_X();
|
||||
|
||||
void *CreateThread(ThreadFunc_t threadFunc, void *context) override;
|
||||
void Beep() const override;
|
||||
bool IsTouchscreen() const override;
|
||||
bool IsUsingMouseAsTouch() const override;
|
||||
bool IsTextInputObstructive() const override;
|
||||
bool IsFullscreenPreferred() const override;
|
||||
bool IsFullscreenOnStartup() const override;
|
||||
unsigned int GetCPUCount() const override;
|
||||
void SetTextInputEnabled(bool isEnabled) override;
|
||||
bool IsTextInputEnabled() const override;
|
||||
bool AreFontResourcesSeekable() const override;
|
||||
IGpClipboardContents *GetClipboardContents() const override;
|
||||
void SetClipboardContents(IGpClipboardContents *contents) override;
|
||||
|
||||
static GpSystemServices_X *GetInstance();
|
||||
|
||||
private:
|
||||
static GpSystemServices_X ms_instance;
|
||||
|
||||
IGpClipboardContents *m_clipboardContents;
|
||||
bool m_textInputEnabled;
|
||||
};
|
Reference in New Issue
Block a user