WiimoteScannerDarwin: Rename stopScanning for code style compliance
This commit is contained in:
parent
be2ec728e4
commit
74755e5939
|
@ -18,7 +18,7 @@ public:
|
||||||
void FindWiimotes(std::vector<Wiimote*>&, Wiimote*&) override;
|
void FindWiimotes(std::vector<Wiimote*>&, Wiimote*&) override;
|
||||||
void Update() override {} // not needed
|
void Update() override {} // not needed
|
||||||
private:
|
private:
|
||||||
bool stopScanning = false;
|
bool m_stop_scanning = false;
|
||||||
};
|
};
|
||||||
} // namespace WiimoteReal
|
} // namespace WiimoteReal
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace WiimoteReal
|
||||||
{
|
{
|
||||||
WiimoteScannerDarwin::~WiimoteScannerDarwin()
|
WiimoteScannerDarwin::~WiimoteScannerDarwin()
|
||||||
{
|
{
|
||||||
stopScanning = true;
|
m_stop_scanning = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiimoteScannerDarwin::FindWiimotes(std::vector<Wiimote*>& found_wiimotes,
|
void WiimoteScannerDarwin::FindWiimotes(std::vector<Wiimote*>& found_wiimotes,
|
||||||
|
@ -60,7 +60,7 @@ void WiimoteScannerDarwin::FindWiimotes(std::vector<Wiimote*>& found_wiimotes,
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
|
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
|
||||||
} while (!sbt->done && !stopScanning);
|
} while (!sbt->done && !m_stop_scanning);
|
||||||
|
|
||||||
int found_devices = [[bti foundDevices] count];
|
int found_devices = [[bti foundDevices] count];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue