From 305eeb08205e9ec8b8d366124cb61216b6cd0a89 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 6 May 2013 23:32:00 +0200 Subject: [PATCH] Added pair function --- Wii.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Wii.h b/Wii.h index c35b31ac..753947ba 100755 --- a/Wii.h +++ b/Wii.h @@ -131,6 +131,11 @@ public: /**@}*/ /** @name Wii Controller functions */ + /** Call this to start the paring sequence with a controller */ + void pair(void) { + if(pBtd) + pBtd->pairWithWiimote(); + } /** * Used to read the joystick of the Nunchuck. * @param a Either ::HatX or ::HatY.