Dependency injection for apu/gpu/hid.
This commit is contained in:
@@ -15,8 +15,8 @@ namespace xe {
|
||||
namespace hid {
|
||||
namespace nop {
|
||||
|
||||
std::unique_ptr<InputDriver> Create(InputSystem* input_system) {
|
||||
return std::make_unique<NopInputDriver>(input_system);
|
||||
std::unique_ptr<InputDriver> Create(xe::ui::Window* window) {
|
||||
return std::make_unique<NopInputDriver>(window);
|
||||
}
|
||||
|
||||
} // namespace nop
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace xe {
|
||||
namespace hid {
|
||||
namespace nop {
|
||||
|
||||
std::unique_ptr<InputDriver> Create(InputSystem* input_system);
|
||||
std::unique_ptr<InputDriver> Create(xe::ui::Window* window);
|
||||
|
||||
} // namespace nop
|
||||
} // namespace hid
|
||||
|
||||
@@ -15,10 +15,9 @@ namespace xe {
|
||||
namespace hid {
|
||||
namespace nop {
|
||||
|
||||
NopInputDriver::NopInputDriver(InputSystem* input_system)
|
||||
: InputDriver(input_system) {}
|
||||
NopInputDriver::NopInputDriver(xe::ui::Window* window) : InputDriver(window) {}
|
||||
|
||||
NopInputDriver::~NopInputDriver() {}
|
||||
NopInputDriver::~NopInputDriver() = default;
|
||||
|
||||
X_STATUS NopInputDriver::Setup() { return X_STATUS_SUCCESS; }
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace nop {
|
||||
|
||||
class NopInputDriver : public InputDriver {
|
||||
public:
|
||||
explicit NopInputDriver(InputSystem* input_system);
|
||||
explicit NopInputDriver(xe::ui::Window* window);
|
||||
~NopInputDriver() override;
|
||||
|
||||
X_STATUS Setup() override;
|
||||
|
||||
Reference in New Issue
Block a user