summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hidbus/hidbus_base.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-02-24 18:29:55 +0100
committerLiam <byteslice@airmail.cc>2023-02-24 18:48:07 +0100
commitde4e5db3300cc77694ff154cf3e8a3ba9c9eaf78 (patch)
tree65cfc240522bc045bd5e5de3c7e6530b26c7c482 /src/core/hle/service/hid/hidbus/hidbus_base.h
parentMerge pull request #9842 from german77/proper_real_mouse (diff)
downloadyuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.tar
yuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.tar.gz
yuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.tar.bz2
yuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.tar.lz
yuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.tar.xz
yuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.tar.zst
yuzu-de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/hidbus/hidbus_base.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hidbus/hidbus_base.h b/src/core/hle/service/hid/hidbus/hidbus_base.h
index 65e301137..26313264d 100644
--- a/src/core/hle/service/hid/hidbus/hidbus_base.h
+++ b/src/core/hle/service/hid/hidbus/hidbus_base.h
@@ -8,6 +8,10 @@
#include "common/common_types.h"
#include "core/hle/result.h"
+namespace Core {
+class System;
+}
+
namespace Kernel {
class KEvent;
class KReadableEvent;
@@ -106,7 +110,7 @@ static_assert(sizeof(ButtonOnlyPollingDataAccessor) == 0x2F0,
class HidbusBase {
public:
- explicit HidbusBase(KernelHelpers::ServiceContext& service_context_);
+ explicit HidbusBase(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
virtual ~HidbusBase();
void ActivateDevice();
@@ -134,7 +138,7 @@ public:
void DisablePollingMode();
// Called on EnableJoyPollingReceiveMode
- void SetTransferMemoryPointer(u8* t_mem);
+ void SetTransferMemoryAddress(VAddr t_mem);
Kernel::KReadableEvent& GetSendCommandAsycEvent() const;
@@ -170,9 +174,9 @@ protected:
JoyEnableSixAxisDataAccessor enable_sixaxis_data{};
ButtonOnlyPollingDataAccessor button_only_data{};
- u8* transfer_memory{nullptr};
- bool is_transfer_memory_set{};
+ VAddr transfer_memory{};
+ Core::System& system;
Kernel::KEvent* send_command_async_event;
KernelHelpers::ServiceContext& service_context;
};