summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2017-02-17 07:04:27 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-17 07:04:27 +0100
commitc7c1f56ce62b8250e5c777df9fbd62d19cf912c9 (patch)
treecae969fabed7b7c8c370f429dc35d677727d4aff
parentMerge pull request #2573 from jfmherokiller/dragndrop (diff)
downloadyuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.tar
yuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.tar.gz
yuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.tar.bz2
yuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.tar.lz
yuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.tar.xz
yuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.tar.zst
yuzu-c7c1f56ce62b8250e5c777df9fbd62d19cf912c9.zip
-rw-r--r--src/core/hle/service/hid/hid.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index f14ab3811..fb3acb507 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -32,8 +32,8 @@ static u32 next_touch_index;
static u32 next_accelerometer_index;
static u32 next_gyroscope_index;
-static int enable_accelerometer_count = 0; // positive means enabled
-static int enable_gyroscope_count = 0; // positive means enabled
+static int enable_accelerometer_count; // positive means enabled
+static int enable_gyroscope_count; // positive means enabled
static int pad_update_event;
static int accelerometer_update_event;
@@ -323,6 +323,9 @@ void Init() {
next_accelerometer_index = 0;
next_gyroscope_index = 0;
+ enable_accelerometer_count = 0;
+ enable_gyroscope_count = 0;
+
// Create event handles
event_pad_or_touch_1 = Event::Create(ResetType::OneShot, "HID:EventPadOrTouch1");
event_pad_or_touch_2 = Event::Create(ResetType::OneShot, "HID:EventPadOrTouch2");