summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-10-19 06:15:46 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-25 03:30:24 +0100
commit4d308fd0b4fc8f14754c47811e751bf068b330b8 (patch)
tree3ea29a0c024fdc9ad7681aaf6160e46511ceb2a6 /src/core/hle/service/hid/controllers/npad.h
parentcore/hid: Documment some files (diff)
downloadyuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar
yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.gz
yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.bz2
yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.lz
yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.xz
yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.zst
yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index b0e2f8430..d805ccb97 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -417,6 +417,8 @@ private:
std::array<VibrationData, 2> vibration{};
bool unintended_home_button_input_protection{};
+ bool is_connected{};
+ Core::HID::NpadType npad_type{Core::HID::NpadType::None};
// Current pad state
NPadGenericState npad_pad_state{};
@@ -435,6 +437,7 @@ private:
void InitNewlyAddedController(std::size_t controller_idx);
bool IsControllerSupported(Core::HID::NpadType controller) const;
void RequestPadStateUpdate(u32 npad_id);
+ void WriteEmptyEntry(NpadInternalState& npad);
std::atomic<u32> press_state{};