From 5857aea94ef52186f64a6794adf418ba92329329 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 6 Oct 2018 13:14:42 +1000 Subject: Addressed changes for better hid --- src/core/hle/service/hid/controllers/controller_base.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/hle/service/hid/controllers/controller_base.h') diff --git a/src/core/hle/service/hid/controllers/controller_base.h b/src/core/hle/service/hid/controllers/controller_base.h index 3b1c8aad6..fa98e2354 100644 --- a/src/core/hle/service/hid/controllers/controller_base.h +++ b/src/core/hle/service/hid/controllers/controller_base.h @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #pragma once + #include "common/common_types.h" #include "common/swap.h" @@ -10,6 +11,7 @@ namespace Service::HID { class ControllerBase { public: ControllerBase() = default; + virtual ~ControllerBase() = 0; // Called when the controller is initialized virtual void OnInit() = 0; @@ -18,7 +20,7 @@ public: virtual void OnRelease() = 0; // When the controller is requesting an update for the shared memory - virtual void OnUpdate(u8* data, size_t size) = 0; + virtual void OnUpdate(u8* data, std::size_t size) = 0; // Called when input devices should be loaded virtual void OnLoadInputDevices() = 0; @@ -40,4 +42,4 @@ protected: }; static_assert(sizeof(CommonHeader) == 0x20, "CommonHeader is an invalid size"); }; -}; // namespace Service::HID +} // namespace Service::HID -- cgit v1.2.3