diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-10-06 05:14:42 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-10-10 04:15:37 +0200 |
commit | 5857aea94ef52186f64a6794adf418ba92329329 (patch) | |
tree | 24223b61b3165725a07bbf421817c1ec34b02abe /src/core/hle/service/hid/controllers/touchscreen.h | |
parent | "Better Hid" rework part 1 (diff) | |
download | yuzu-5857aea94ef52186f64a6794adf418ba92329329.tar yuzu-5857aea94ef52186f64a6794adf418ba92329329.tar.gz yuzu-5857aea94ef52186f64a6794adf418ba92329329.tar.bz2 yuzu-5857aea94ef52186f64a6794adf418ba92329329.tar.lz yuzu-5857aea94ef52186f64a6794adf418ba92329329.tar.xz yuzu-5857aea94ef52186f64a6794adf418ba92329329.tar.zst yuzu-5857aea94ef52186f64a6794adf418ba92329329.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/touchscreen.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/controllers/touchscreen.h b/src/core/hle/service/hid/controllers/touchscreen.h index a516128ac..82a3d4a1a 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.h +++ b/src/core/hle/service/hid/controllers/touchscreen.h @@ -3,16 +3,22 @@ // Refer to the license.txt file included. #pragma once + #include "common/common_funcs.h" #include "common/common_types.h" #include "common/swap.h" -#include "core/frontend/input.h" #include "core/hle/service/hid/controllers/controller_base.h" +namespace Input { +template <typename StatusType> +class InputDevice; +using TouchDevice = InputDevice<std::tuple<float, float, bool>>; +} // namespace Input + namespace Service::HID { class Controller_Touchscreen final : public ControllerBase { public: - Controller_Touchscreen() = default; + Controller_Touchscreen(); // Called when the controller is initialized void OnInit() override; @@ -21,7 +27,7 @@ public: void OnRelease() override; // When the controller is requesting an update for the shared memory - void OnUpdate(u8* data, size_t size) override; + void OnUpdate(u8* data, std::size_t size) override; // Called when input devices should be loaded void OnLoadInputDevices() override; @@ -58,4 +64,4 @@ private: std::unique_ptr<Input::TouchDevice> touch_device; s64_le last_touch{}; }; -}; // namespace Service::HID +} // namespace Service::HID |