Dependency injection for apu/gpu/hid.
This commit is contained in:
@@ -13,6 +13,12 @@
|
||||
#include "xenia/hid/input.h"
|
||||
#include "xenia/xbox.h"
|
||||
|
||||
namespace xe {
|
||||
namespace ui {
|
||||
class Window;
|
||||
} // namespace ui
|
||||
} // namespace xe
|
||||
|
||||
namespace xe {
|
||||
namespace hid {
|
||||
|
||||
@@ -33,9 +39,9 @@ class InputDriver {
|
||||
X_INPUT_KEYSTROKE* out_keystroke) = 0;
|
||||
|
||||
protected:
|
||||
explicit InputDriver(InputSystem* input_system);
|
||||
explicit InputDriver(xe::ui::Window* window);
|
||||
|
||||
InputSystem* input_system_ = nullptr;
|
||||
xe::ui::Window* window_ = nullptr;
|
||||
};
|
||||
|
||||
} // namespace hid
|
||||
|
||||
Reference in New Issue
Block a user