summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-11-02 02:35:49 +0100
committerDavid Marcec <dmarcecguzman@gmail.com>2018-11-02 02:35:49 +0100
commit0bc323bafb79442ead1511a5d7ee08f1caff171a (patch)
tree4f3bd752e6cec4d209dfc245338911c08fa0fb0e /src/core/hle/service
parentMerge pull request #1615 from lioncash/input (diff)
downloadyuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.tar
yuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.tar.gz
yuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.tar.bz2
yuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.tar.lz
yuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.tar.xz
yuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.tar.zst
yuzu-0bc323bafb79442ead1511a5d7ee08f1caff171a.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp3
-rw-r--r--src/core/hle/service/hid/hid.cpp2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 4b4d1324f..1ef789bd0 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -427,6 +427,9 @@ void Controller_NPad::VibrateController(const std::vector<u32>& controller_ids,
}
Kernel::SharedPtr<Kernel::Event> Controller_NPad::GetStyleSetChangedEvent() const {
+ // TODO(ogniK): Figure out the best time to signal this event. This event seems that it should
+ // be signalled at least once, and signaled after a new controller is connected?
+ styleset_changed_event->Signal();
return styleset_changed_event;
}
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index a9aa9ec78..a45fd4954 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -96,6 +96,8 @@ public:
// TODO(shinyquagsire23): Other update callbacks? (accel, gyro?)
CoreTiming::ScheduleEvent(pad_update_ticks, pad_update_event);
+
+ ReloadInputDevices();
}
void ActivateController(HidController controller) {