From 99c8ea7abb22dd48cd9102cb90d1dd38dd5e0cf8 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sat, 1 Jan 2011 01:47:33 +0000 Subject: [PATCH] Initialize bluetooth input queue when creating wiimote object. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6705 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp b/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp index dad72a6bdf..4f715c76eb 100644 --- a/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp +++ b/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp @@ -57,7 +57,13 @@ Wiimote::Wiimote(const unsigned int _index) #endif , leds(0), m_last_data_report(NULL), m_channel(0), m_connected(false) { -#if defined(__linux__) && HAVE_BLUEZ +#ifdef __APPLE__ + memset(queue, 0, sizeof queue); + reader = 0; + writer = 0; + outstanding = 0; + watermark = 0; +#elif defined(__linux__) && HAVE_BLUEZ bdaddr = (bdaddr_t){{0, 0, 0, 0, 0, 0}}; #endif