touch_from_buttons.h 582 B

123456789101112131415161718192021
  1. // SPDX-FileCopyrightText: 2020 Citra Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/input.h"
  5. namespace InputCommon {
  6. /**
  7. * A touch device factory that takes a list of button devices and combines them into a touch device.
  8. */
  9. class TouchFromButton final : public Common::Input::Factory<Common::Input::InputDevice> {
  10. public:
  11. /**
  12. * Creates a touch device from a list of button devices
  13. */
  14. std::unique_ptr<Common::Input::InputDevice> Create(const Common::ParamPackage& params) override;
  15. };
  16. } // namespace InputCommon