Initialize bluetooth input queue when creating wiimote object.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6705 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-01-01 01:47:33 +00:00
parent 72738bf2e7
commit 99c8ea7abb
1 changed files with 7 additions and 1 deletions

View File

@ -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