ppsspp/UWP/UWPHost.h
2017-10-11 14:27:50 +02:00

55 lines
1.5 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;
bool GPUDebuggingActive() override { return false; }
void GPUNotifyCommand(u32 pc) override {}
void GPUNotifyDisplay(u32 framebuf, u32 stride, int format) override {}
void GPUNotifyDraw() override {}
void GPUNotifyTextureAttachment(u32 addr) 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::shared_ptr<InputDevice>> input;
};