touch_from_button.h 619 B

1234567891011121314151617181920212223
  1. // Copyright 2020 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include "core/frontend/input.h"
  7. namespace InputCommon {
  8. /**
  9. * A touch device factory that takes a list of button devices and combines them into a touch device.
  10. */
  11. class TouchFromButtonFactory final : public Input::Factory<Input::TouchDevice> {
  12. public:
  13. /**
  14. * Creates a touch device from a list of button devices
  15. */
  16. std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override;
  17. };
  18. } // namespace InputCommon