History

Merge branch 'master' of github.com:highfidelity/hifi into dk/bugz-6

David Kelly committed 7 years ago

Commit 0b2d11a2 parents 02b960d 75b670538 files · +388 −304Browse files

Showing the changes to interface/src/Application.cpp (1 of 38 files). Show all

Unified · Split

interface/src/Application.cpp+14−6
@@ -669,9 +669,10 @@ private: · 668 unmodified lines
669669
670670 /**jsdoc
671671 * <p>The <code>Controller.Hardware.Application</code> object has properties representing Interface's state. The property
672− * values are integer IDs, uniquely identifying each output. <em>Read-only.</em> These can be mapped to actions or functions or
673− * <code>Controller.Standard</code> items in a {@link RouteObject} mapping (e.g., using the {@link RouteObject#when} method).
674− * Each data value is either <code>1.0</code> for "true" or <code>0.0</code> for "false".</p>
672+ * values are integer IDs, uniquely identifying each output. <em>Read-only.</em></p>
673+ * <p>These states can be mapped to actions or functions or <code>Controller.Standard</code> items in a {@link RouteObject}
674+ * mapping (e.g., using the {@link RouteObject#when} method). Each data value is either <code>1.0</code> for "true" or
675+ * <code>0.0</code> for "false".</p>
675676 * <table>
676677 * <thead>
677678 * <tr><th>Property</th><th>Type</th><th>Data</th><th>Description</th></tr>
@@ -685,13 +686,17 @@ private: · 7 unmodified lines
685686 * <tr><td><code>CameraIndependent</code></td><td>number</td><td>number</td><td>The camera is in independent mode.</td></tr>
686687 * <tr><td><code>CameraEntity</code></td><td>number</td><td>number</td><td>The camera is in entity mode.</td></tr>
687688 * <tr><td><code>InHMD</code></td><td>number</td><td>number</td><td>The user is in HMD mode.</td></tr>
688− * <tr><td><code>AdvancedMovement</code></td><td>number</td><td>number</td><td>Advanced movement controls are enabled.
689− * </td></tr>
689+ * <tr><td><code>AdvancedMovement</code></td><td>number</td><td>number</td><td>Advanced movement (walking) controls are
690+ * enabled.</td></tr>
691+ * <tr><td><code>StrafeEnabled</code></td><td>number</td><td>number</td><td>Strafing is enabled</td></tr>
690692 * <tr><td><code>LeftHandDominant</code></td><td>number</td><td>number</td><td>Dominant hand set to left.</td></tr>
691693 * <tr><td><code>RightHandDominant</code></td><td>number</td><td>number</td><td>Dominant hand set to right.</td></tr>
692694 * <tr><td><code>SnapTurn</code></td><td>number</td><td>number</td><td>Snap turn is enabled.</td></tr>
693695 * <tr><td><code>Grounded</code></td><td>number</td><td>number</td><td>The user's avatar is on the ground.</td></tr>
694696 * <tr><td><code>NavigationFocused</code></td><td>number</td><td>number</td><td><em>Not used.</em></td></tr>
697+ * <tr><td><code>PlatformWindows</code></td><td>number</td><td>number</td><td>The operating system is Windows.</td></tr>
698+ * <tr><td><code>PlatformMac</code></td><td>number</td><td>number</td><td>The operating system is Mac.</td></tr>
699+ * <tr><td><code>PlatformAndroid</code></td><td>number</td><td>number</td><td>The operating system is Android.</td></tr>
695700 * </tbody>
696701 * </table>
697702 * @typedef {object} Controller.Hardware-Application
@@ -1335,7 +1340,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 637 unmodified lines
13351340 setCrashAnnotation("avatar", avatarURL.toString().toStdString());
13361341 });
13371342
1338−
13391343 // Inititalize sample before registering
13401344 _sampleSound = DependencyManager::get<SoundCache>()->getSound(PathUtils::resourcesUrl("sounds/sample.wav"));
13411345
@@ -1426,6 +1430,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 84 unmodified lines
14261430 initializeDisplayPlugins();
14271431 qCDebug(interfaceapp, "Initialized Display");
14281432
1433+ if (_displayPlugin && !_displayPlugin->isHmd()) {
1434+ _preferredCursor.set(Cursor::Manager::getIconName(Cursor::Icon::SYSTEM));
1435+ showCursor(Cursor::Manager::lookupIcon(_preferredCursor.get()));
1436+ }
14291437 // An audio device changed signal received before the display plugins are set up will cause a crash,
14301438 // so we defer the setup of the `scripting::Audio` class until this point
14311439 {