Beispiel #1
0
void Wiimote::EmuStop()
{
	m_channel = 0;

	DisableDataReporting();

	NOTICE_LOG(WIIMOTE, "Stopping Wiimote data reporting.");

	DisablePowerAssertionInternal();
}
Beispiel #2
0
Wiimote::Wiimote(const unsigned int _index)
	: index(_index)
#ifdef __APPLE__
	, inputlen(0)
#elif defined(__linux__) && HAVE_BLUEZ
	, out_sock(-1), in_sock(-1)
#elif defined(_WIN32)
	, dev_handle(0), stack(MSBT_STACK_UNKNOWN)
#endif
	, leds(0), m_last_data_report(Report((u8 *)NULL, 0))
	, m_channel(0), m_connected(false)
{
#if defined(__linux__) && HAVE_BLUEZ
	bdaddr = (bdaddr_t){{0, 0, 0, 0, 0, 0}};
#endif

	DisableDataReporting();
}
Beispiel #3
0
void Wiimote::EmuStart()
{
	DisableDataReporting();
	EnablePowerAssertionInternal();
}
Beispiel #4
0
void Wiimote::Disconnect()
{
	m_channel = 0;

	DisableDataReporting();
}
Beispiel #5
0
void Wiimote::EmuStart()
{
	DisableDataReporting();
}