summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/controller_base.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-10-06 05:14:42 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-10-10 04:15:37 +0200
commit5857aea94ef52186f64a6794adf418ba92329329 (patch)
tree24223b61b3165725a07bbf421817c1ec34b02abe /src/core/hle/service/hid/controllers/controller_base.h
parent"Better Hid" rework part 1 (diff)
downloadyuzu-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 'src/core/hle/service/hid/controllers/controller_base.h')
-rw-r--r--src/core/hle/service/hid/controllers/controller_base.h6
1 files changed, 4 insertions, 2 deletions
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