summaryrefslogtreecommitdiff
path: root/src/tangara/input/device_factory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tangara/input/device_factory.hpp')
-rw-r--r--src/tangara/input/device_factory.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tangara/input/device_factory.hpp b/src/tangara/input/device_factory.hpp
index 5044d025..1f95bbef 100644
--- a/src/tangara/input/device_factory.hpp
+++ b/src/tangara/input/device_factory.hpp
@@ -12,6 +12,7 @@
#include "input/feedback_device.hpp"
#include "input/input_device.hpp"
#include "input/input_touch_wheel.hpp"
+#include "input/input_hard_reset.hpp"
#include "drivers/nvs.hpp"
#include "system_fsm/service_locator.hpp"
@@ -21,7 +22,9 @@ class DeviceFactory {
public:
DeviceFactory(std::shared_ptr<system_fsm::ServiceLocator>);
- auto createInputs(drivers::NvsStorage::InputModes mode)
+ auto createInputs()
+ -> std::vector<std::shared_ptr<IInputDevice>>;
+ auto createLockedInputs()
-> std::vector<std::shared_ptr<IInputDevice>>;
auto createFeedbacks() -> std::vector<std::shared_ptr<IFeedbackDevice>>;
@@ -34,6 +37,10 @@ class DeviceFactory {
// HACK: the touchwheel is current a special case, since it's the only input
// device that has some kind of setting/configuration; scroll sensitivity.
std::shared_ptr<TouchWheel> wheel_;
+
+ // Another special case, the hard reset input should persist between
+ // lock modes, and always be added to the created inputs
+ std::shared_ptr<HardReset> reset_;
};
} // namespace input