ppsspp/UWP/UWPHost.h
Silent 0b5458f759
Remove KeyboardDevice which was essentially useless
Refactor InputDevice to simplify it
2019-07-02 19:17:52 +02:00

50 lines
1.2 KiB
C++

#pragma once
#include "Core/Host.h"
#include <list>
#include <memory>
#include "Windows/InputDevice.h"
class UWPHost : public Host {
public:
UWPHost();
~UWPHost();
void UpdateMemView() override;
void UpdateDisassembly() override;
void UpdateUI() override;
void SetDebugMode(bool mode) override;
// If returns false, will return a null context
bool InitGraphics(std::string *error_message, GraphicsContext **ctx) override;
void PollControllers() override;
void ShutdownGraphics() override;
void InitSound() override;
void UpdateSound() override;
void ShutdownSound() override;
bool IsDebuggingEnabled() override;
void BootDone() override;
bool AttemptLoadSymbolMap() override;
void SaveSymbolMap() override;
void SetWindowTitle(const char *message) override;
void ToggleDebugConsoleVisibility() override;
bool CanCreateShortcut() override;
bool CreateDesktopShortcut(std::string argumentPath, std::string title) override;
void NotifyUserMessage(const std::string &message, float duration = 1.0f, u32 color = 0x00FFFFFF, const char *id = nullptr) override;
GraphicsContext *GetGraphicsContext() { return nullptr; }
private:
void SetConsolePosition();
void UpdateConsolePosition();
std::list<std::unique_ptr<InputDevice>> input;
};