From 219bd50c307169bf0f07f3812dd176adfd6873fa Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 30 Mar 2013 16:24:08 +0100 Subject: [PATCH] statusRequest is now public --- Wii.h | 6 ++++-- keywords.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Wii.h b/Wii.h index 6ffe6803..e79a75b0 100755 --- a/Wii.h +++ b/Wii.h @@ -204,6 +204,10 @@ public: */ void setLedStatus(); + /** + * Call this to update battery level and Wiimote state + */ + void statusRequest(); /** * Return the battery level of the Wiimote. * @return The battery level in the range 0-255. @@ -211,7 +215,6 @@ public: uint8_t getBatteryLevel() { return batteryLevel; }; - /** * Return the Wiimote state. * @return See: http://wiibrew.org/wiki/Wiimote#0x20:_Status. @@ -438,7 +441,6 @@ private: /* HID Commands */ void HID_Command(uint8_t* data, uint8_t nbytes); void setReportMode(bool continuous, uint8_t mode); - void statusRequest(); void writeData(uint32_t offset, uint8_t size, uint8_t* data); void initExtension1(); diff --git a/keywords.txt b/keywords.txt index 2f027e8d..01dcbdc1 100644 --- a/keywords.txt +++ b/keywords.txt @@ -238,6 +238,7 @@ getPitch KEYWORD2 getRoll KEYWORD2 getYaw KEYWORD2 PAIR KEYWORD2 +statusRequest KEYWORD2 getBatteryLevel KEYWORD2 getWiiState KEYWORD2