summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-10-10 15:58:47 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-10-10 15:58:47 +0200
commit9e924f2ef2add0f351df6addc01c356b52c8d7be (patch)
treea6bfc8c760bf12daab42f21a5dc077ab9fa8c89d /src/core/hle/service/hid/controllers/npad.h
parentAdded GetLedPattern and HandheldVariant (diff)
downloadyuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.tar
yuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.tar.gz
yuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.tar.bz2
yuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.tar.lz
yuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.tar.xz
yuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.tar.zst
yuzu-9e924f2ef2add0f351df6addc01c356b52c8d7be.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index 28c89768c..b1aa98820 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -111,6 +111,7 @@ public:
void ConnectNPad(u32 npad_id);
void DisconnectNPad(u32 npad_id);
LedPattern GetLedPattern(u32 npad_id);
+ void SetVibrationEnabled(bool can_vibrate);
private:
struct CommonHeader {
@@ -275,6 +276,7 @@ private:
std::size_t controller_count{};
static constexpr std::array<u32, 10> npad_id_list{0, 1, 2, 3, 4, 5, 6, 7, 32, 16};
std::array<ControllerHolder, 10> connected_controllers{};
+ bool can_controllers_vibrate{true};
void InitNewlyAddedControler(std::size_t controller_idx);
};