From e4ee3ff6b025075a028059489819f98a1495eec3 Mon Sep 17 00:00:00 2001 From: Adrian Biagioli Date: Tue, 13 Oct 2015 09:40:09 -0400 Subject: [PATCH] Finalize Documentation for 1.1 --- Assets/Wiimote/Scripts/mainpage.dox | 9 ++++++--- ProjectSettings/EditorBuildSettings.asset | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Assets/Wiimote/Scripts/mainpage.dox b/Assets/Wiimote/Scripts/mainpage.dox index 0a5fdf8..988f501 100644 --- a/Assets/Wiimote/Scripts/mainpage.dox +++ b/Assets/Wiimote/Scripts/mainpage.dox @@ -120,11 +120,14 @@ float[] pointer = wiimote.Ir.GetPointingPosition(); // See "Reading from the Rem \subsection write-wmp Wii Motion Plus / Wii Remote Plus -If you want to check if a Wii Motion Plus is connected to the remote, you can use WiimoteApi::Wiimote::RequestIdentifyMotionPlus() +If you want to check if a Wii Motion Plus is connected to the remote, you can use WiimoteApi::Wiimote::RequestIdentifyWiiMotionPlus() to ping the Wii Remote and check if one is attached. When the Wii Remote reports back its data, you can use WiimoteApi::Wiimote::wmp_attached to see if a Wii Motion Plus is attached. If you want, you can activate the Wii Motion Plus using WiimoteApi::Wiimote::ActivateWiiMotionPlus(). This makes the Wii Motion Plus behave as an extension controller (such as the -nunchuck or the classic controller). See *Reading from Extension Controllers* for details. +nunchuck or the classic controller), and deactivates any "real" extension controllers. See *Reading from Extension Controllers* for details. + +\note It is technically possible to put the Wiimote in a Nunchuck or Classic Controller "passthrough" mode (where you can use + the nunchuck or classic controller at the same time as the Wii Motion Plus) but this is currently unsupported by the API. If you want to deactivate the Wii Motion Plus (and use any extension controller connected to it such as a Nunchuck or Classic Controller) you can use WiimoteApi::Wiimote::DeactivateWiiMotionPlus(). @@ -135,7 +138,7 @@ Wiimote remote; // Initialized previously bool activated = false; void Start() { - remote.RequestIdentifyMotionPlus(); + remote.RequestIdentifyWiiMotionPlus(); } void Update() { diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index 6dc24f7..552b74d 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -4,4 +4,6 @@ EditorBuildSettings: m_ObjectHideFlags: 0 serializedVersion: 2 - m_Scenes: [] + m_Scenes: + - enabled: 1 + path: Assets/Scene.unity