Dependency injection for apu/gpu/hid.

This commit is contained in:
Ben Vanik
2015-11-08 15:02:24 -08:00
parent 9a6c5c5c74
commit 5834a42ef3
34 changed files with 217 additions and 158 deletions

View File

@@ -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