diff options
author | german77 <juangerman-13@hotmail.com> | 2022-06-18 23:32:07 -0500 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-07-23 19:38:42 -0500 |
commit | f19e7be6e84357234c9fdae3395f988a9bb1ac5b (patch) | |
tree | cc93872ac739fd7b967f8f62ea6abf2c8639221d /src/input_common/input_poller.h | |
parent | 97729fd8e9c2f8cabc626ab03a666c9428e01c5e (diff) |
input_common: Add camera driver
Diffstat (limited to 'src/input_common/input_poller.h')
-rw-r--r-- | src/input_common/input_poller.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/input_common/input_poller.h b/src/input_common/input_poller.h index 6ebe0dbf51..4410a84154 100644 --- a/src/input_common/input_poller.h +++ b/src/input_common/input_poller.h @@ -211,6 +211,17 @@ private: */ std::unique_ptr<Common::Input::InputDevice> CreateMotionDevice(Common::ParamPackage params); + /** + * Creates a camera device from the parameters given. + * @param params contains parameters for creating the device: + * - "guid": text string for identifying controllers + * - "port": port of the connected device + * - "pad": slot of the connected controller + * @returns a unique input device with the parameters specified + */ + std::unique_ptr<Common::Input::InputDevice> CreateCameraDevice( + const Common::ParamPackage& params); + std::shared_ptr<InputEngine> input_engine; }; } // namespace InputCommon |