LUS Cleanup: Controllers cleanup (#1016)

This commit is contained in:
Kenix3 2022-08-03 00:07:52 -04:00 committed by GitHub
commit 2d60c772bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 30 deletions

View file

@ -2,7 +2,6 @@
#include "Controller.h" #include "Controller.h"
#include <vector> #include <vector>
#include <string>
namespace Ship { namespace Ship {

View file

@ -1,7 +1,5 @@
#pragma once #pragma once
#include <string>
#include "Lib/ImGui/imgui.h" #include "Lib/ImGui/imgui.h"
namespace Ship { namespace Ship {

View file

@ -4,8 +4,9 @@
#include "Controller.h" #include "Controller.h"
class VirtualController final : public Ship::Controller { namespace Ship {
public: class VirtualController final : public Controller {
public:
VirtualController(const std::string& CUID, const std::string& KeyName, bool Connected) { VirtualController(const std::string& CUID, const std::string& KeyName, bool Connected) {
GUID = CUID; GUID = CUID;
isConnected = Connected; isConnected = Connected;
@ -26,10 +27,11 @@ public:
bool HasPadConf() const { return true; } bool HasPadConf() const { return true; }
std::optional<std::string> GetPadConfSection() { return "Unk"; } std::optional<std::string> GetPadConfSection() { return "Unk"; }
void CreateDefaultBinding(int32_t slot) override {} void CreateDefaultBinding(int32_t slot) override {}
protected: protected:
std::string ButtonName; std::string ButtonName;
bool isConnected = false; bool isConnected = false;
std::string GetControllerType() { return "Unk"; } std::string GetControllerType() { return "Unk"; }
std::string GetConfSection() { return "Unk"; } std::string GetConfSection() { return "Unk"; }
std::string GetBindingConfSection() { return "Unk"; } std::string GetBindingConfSection() { return "Unk"; }
}; };
}