summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-06-10 21:09:22 +0200
committerGitHub <noreply@github.com>2022-06-10 21:09:22 +0200
commit9561a2f5b1bc0a09c37909b07a85e27ee2f60be4 (patch)
treee11e81fa798807b419f5b260721beec2269f3d14
parentMerge pull request #8428 from bunnei/nvflinger-fix-timing (diff)
parentservice: hid: Fix gesture regression (diff)
downloadyuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.tar
yuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.tar.gz
yuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.tar.bz2
yuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.tar.lz
yuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.tar.xz
yuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.tar.zst
yuzu-9561a2f5b1bc0a09c37909b07a85e27ee2f60be4.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/gesture.cpp4
-rw-r--r--src/core/hle/service/hid/controllers/gesture.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cpp
index 3eae1ae35..32e0708ba 100644
--- a/src/core/hle/service/hid/controllers/gesture.cpp
+++ b/src/core/hle/service/hid/controllers/gesture.cpp
@@ -61,6 +61,7 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
}
last_update_timestamp = shared_memory->gesture_lifo.timestamp;
+ UpdateGestureSharedMemory(gesture, time_difference);
}
void Controller_Gesture::ReadTouchInput() {
@@ -94,8 +95,7 @@ bool Controller_Gesture::ShouldUpdateGesture(const GestureProperties& gesture,
return false;
}
-void Controller_Gesture::UpdateGestureSharedMemory(u8* data, std::size_t size,
- GestureProperties& gesture,
+void Controller_Gesture::UpdateGestureSharedMemory(GestureProperties& gesture,
f32 time_difference) {
GestureType type = GestureType::Idle;
GestureAttribute attributes{};
diff --git a/src/core/hle/service/hid/controllers/gesture.h b/src/core/hle/service/hid/controllers/gesture.h
index c62a341bf..0d6099ea0 100644
--- a/src/core/hle/service/hid/controllers/gesture.h
+++ b/src/core/hle/service/hid/controllers/gesture.h
@@ -107,8 +107,7 @@ private:
bool ShouldUpdateGesture(const GestureProperties& gesture, f32 time_difference);
// Updates the shared memory to the next state
- void UpdateGestureSharedMemory(u8* data, std::size_t size, GestureProperties& gesture,
- f32 time_difference);
+ void UpdateGestureSharedMemory(GestureProperties& gesture, f32 time_difference);
// Initializes new gesture
void NewGesture(GestureProperties& gesture, GestureType& type, GestureAttribute& attributes);