Dependency injection for apu/gpu/hid.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "xenia/hid/input.h"
|
||||
#include "xenia/hid/input_driver.h"
|
||||
#include "xenia/xbox.h"
|
||||
|
||||
namespace xe {
|
||||
@@ -25,14 +26,11 @@ class Window;
|
||||
namespace xe {
|
||||
namespace hid {
|
||||
|
||||
class InputDriver;
|
||||
|
||||
class InputSystem {
|
||||
public:
|
||||
explicit InputSystem(xe::ui::Window* window);
|
||||
~InputSystem();
|
||||
|
||||
static std::unique_ptr<InputSystem> Create(xe::ui::Window* window);
|
||||
|
||||
xe::ui::Window* window() const { return window_; }
|
||||
|
||||
X_STATUS Setup();
|
||||
@@ -47,8 +45,6 @@ class InputSystem {
|
||||
X_INPUT_KEYSTROKE* out_keystroke);
|
||||
|
||||
private:
|
||||
explicit InputSystem(xe::ui::Window* window);
|
||||
|
||||
xe::ui::Window* window_ = nullptr;
|
||||
|
||||
std::vector<std::unique_ptr<InputDriver>> drivers_;
|
||||
|
||||
Reference in New Issue
Block a user