Skip to content

Commit 9ed2a4f

Browse files
authored
Update README.md
1 parent cff9c05 commit 9ed2a4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@ WiimoteManager m;
1717
m.onConnection([](Wiimote* wiimote) {
1818
std::cout << "Wiimote " << wiimote->id() + 1 << " connected!" << std::endl;
1919

20-
wiimote->onButton([wiimote, &stream, name](WiimoteButton button, bool down) {
20+
wiimote->onButton([wiimote](WiimoteButton button, bool down) {
2121
const char* buttonName = WiimoteButtons::toString(button);
2222
if (buttonName) {
2323
std::cout << buttonName << down ? " pressed" : " released" << std::endl;
2424
}
2525
});
2626

27-
wiimote->onNunchuckButton([wiimote, &stream, name](NunchuckButton button, bool down) {
27+
wiimote->onNunchuckButton([wiimote](NunchuckButton button, bool down) {
2828
const char* buttonName = NunchuckButtons::toString(button);
2929
if (buttonName) {
3030
std::cout << buttonName << down ? " pressed" : " released" << std::endl;
3131
}
3232
});
3333

34-
wiimote->onAccelerometer([wiimote, &stream, name](const Vector3& v) {
34+
wiimote->onAccelerometer([wiimote](const Vector3& v) {
3535
std::cout << "Accel: " << v.x << ", " << v.y << ", " << v.z << std::endl;
3636
}, true);
3737

3838

39-
wiimote->onNunchuckAccelerometer([wiimote, &stream, name](const Vector3& v) {
39+
wiimote->onNunchuckAccelerometer([wiimote](const Vector3& v) {
4040
std::cout << "Nunchuck Accel: " << v.x << ", " << v.y << ", " << v.z << std::endl;
4141
}, true);
4242

43-
wiimote->onMotionPlus([wiimote, &stream, name](const Vector3& v) {
43+
wiimote->onMotionPlus([wiimote](const Vector3& v) {
4444
std::cout << "Motion Plus: " << v.x << ", " << v.y << ", " << v.z << std::endl;
4545
}, true);
4646

@@ -63,4 +63,4 @@ while (true) {
6363
## Contact
6464
Author: Tom Yaxley / _tommtiytom at gmail dot com_
6565

66-
Contributions, pull requests, bug reports and issues are welcome!
66+
Contributions, pull requests, bug reports and issues are welcome!

0 commit comments

Comments
 (0)