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:
parent
72738bf2e7
commit
99c8ea7abb
|
@ -57,7 +57,13 @@ Wiimote::Wiimote(const unsigned int _index)
|
||||||
#endif
|
#endif
|
||||||
, leds(0), m_last_data_report(NULL), m_channel(0), m_connected(false)
|
, 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}};
|
bdaddr = (bdaddr_t){{0, 0, 0, 0, 0, 0}};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue