Commit Graph
1094 Commits
Author SHA1 Message Date
Vasily 394482e63a Fix regression in profile popups
Without the public ids on the pop ups other buttons that used the
buttons did not work.
2019-02-01 19:16:18 +01:00
Vasily fc06c46144 Refactor audio proximity enable button into separate file 2019-02-01 19:08:26 +01:00
Kung-vr 95be1a4aab Prevent low vsync fps from slowing tick under old 20ms 2019-02-02 03:01:36 +09:00
Vasily a29e6baaf7 Remove id tags from refactored components
The ids are not needed within the AudioPage, since everything has been
encapsulated inside the components.
2019-02-01 16:38:49 +01:00
Vasily 5dc28972ae Refactor microphone volume slider into separate file, clean up AudioPage
An if statement hadn't been transferred to the mirrorVolume slider,
hence it was moved now.
2019-02-01 16:38:49 +01:00
Vasily 5aa5d84345 Indent PTT controls on AudioPage
The PTT controls were grouped in a ColumnLayout with the microphone
device and volume controls. Grouping the microphone controls together
mirrors what is done with the mirror device controls.
2019-02-01 16:38:48 +01:00
Vasily 86599fbd29 Refactor audioMicNameCombo 2019-02-01 16:38:47 +01:00
Vasily c36e9cd168 Move mirror slider into own file
The mirror selector is a sub part of the volume slider. This could be
changed in the future to have the slider be a top level component that
contains both selector and slider.
2019-02-01 16:38:46 +01:00
Vasily 56d866a236 Refactor mirrorAudio dropdown and move logic into
The logic is better abstracted away inside the class.
2019-02-01 16:38:45 +01:00
Vasily cd4a6d6994 Refactor audio device selector into separate file
For now the way to go is to have the mirror device and audio device
selectors as different components instead of trying to inherit from a
single component and filling in the necessary function calls.

This is because some function calls are nested inside other components
and would be very messy. Perhaps in future commits the selectors will
inherit from a single parent.
2019-02-01 16:38:44 +01:00
Vasily b6ffa8d30d Move dialog boxes into separate folder
Setting the default audio profile has also been moved into the separate
dialog box. This should not change anything and no bugs were found in
testing, however I have no idea how objects in QML/C++ are initialized
or if our current codebase is created with this in mind.
2019-02-01 16:38:44 +01:00
Vasily 33768028b4 Move AudioPage.qml into separate directory
This encapsulates the page and separates it and the files it uses from
the rest of the application.
2019-02-01 16:38:42 +01:00
Kung-vr e302d5b978 Merge branch 'master' into alpha-kung 2019-02-01 22:42:23 +09:00
Kung-vr 3b24502825 Merge pull request #76 from OpenVR-Advanced-Settings/update-openvr
Update OpenVR from 1.1.3b to 1.2.10
2019-02-01 22:41:39 +09:00
Vasily 6c31fde308 Update OpenVR from 1.1.3b to 1.2.10
The openvr/bin/linux64 directory also contained a file called empty.dir.
This has been removed because it was an empty file.

VREvent_Scroll has been renamed to VREvent_ScrollSmooth, and not
VREvent_ScrollDescrete because the second one will keep scrolling after
having let go of the scroll (tested on Vive controller). This feels
weird when done on a Vive controller and so the first option was chosen.
The first option also feels more like the old system.

Even though the version jump is weird this is the next release.
2019-01-31 21:45:54 +01:00
Kung-vr e17cec1f27 Call movecenter reset on chaperone tab flip orientation (#75) 2019-01-31 13:57:11 -06:00
Kung-vr 79002dd16a Merge branch 'master' into alpha-kung 2019-01-31 13:57:29 +09:00
Kung-vr bd8bcd5972 Call movecenter reset on chaperone tab flip orientation 2019-01-31 13:50:49 +09:00
Kung-vr 93dec1dd28 Merge pull request #71 from OpenVR-Advanced-Settings/alpha-kung
Alpha kung merge (new playspace rotation feature)
2019-01-31 04:12:39 +09:00
Kung-vr ffdb47fcb6 Clarified invalid quaternion checking
Note: Considered NaN, however we use a placeholder invalid number rather than NaN because NaN can have unintuitive behavior when comparing as boolean.
2019-01-31 03:54:59 +09:00
Kung-vr 854681dcdf static constexpr to constexpr changes
static constexpr to constexpr changes for update counters and invalid quaternions and radians conversion
2019-01-31 03:37:15 +09:00
Kung-vr 31696863be Replace magic numbers, fix bindings localization
Replace magic numbers with constants and centralize settings update counters. Rename actions manifest localization from "en" to "en_US" (Thanks Ykeara)
2019-01-30 15:11:11 +09:00
Kung-vr 1d058dffcf Terminolgy Change: "Playspace" -> "Room"
Valve's official terminology are "Room Setup" and "Tracking Universe". Changed our usage of "Playspace" to "Room" for clarity with the upcoming Room-Turn feature and existing Room-Drag feature when compared to nomenclature for other tools that exits out there.

Also slight clean up in readability of movecentertab's action functions.
2019-01-29 01:11:47 +09:00
Kung-vr a39196af01 Improve readability of vsync and settings update code 2019-01-28 23:11:20 +09:00
Kung-vr d529b21f3e Clean up before PR to master 2019-01-28 03:31:52 +09:00
Kung-vr cca61b3ee7 Merge branch 'master' into alpha-kung 2019-01-28 03:14:42 +09:00
Kung-vr 7dce218529 Merge pull request #69 from OpenVR-Advanced-Settings/utilities-qml
Move the utilities page QML into its own folder and extract components
2019-01-28 03:12:49 +09:00
Kung-vr f60be85a58 Merge branch 'master' into utilities-qml 2019-01-28 02:55:30 +09:00
Kung-vr 3e9ec4a48d Merge branch 'master' into alpha-kung 2019-01-28 02:53:24 +09:00
Kung-vr 775aaa7cd0 Support new steamvr input for playspace rotate and move 2019-01-28 02:45:29 +09:00
Vasily 70e7556de8 Move components into their own directories
This prevents the import "utilities_page" from also importing the
subcomponents. They should not be in the global namespace.
2019-01-27 10:29:57 +01:00
Kung-vr 310fa36828 Merge pull request #68 from bdonlan/crashfix
Fix NULL dereference in OnDefaultDeviceChanged
2019-01-27 12:56:25 +09:00
Bryan Donlan ac0f957488 Fix NULL dereference in OnDefaultDeviceChanged
When the vive pro wireless adapter loses connection, its audio devices are
removed, causing an OnDefaultDeviceChanged event to be issued for each
such device that was previously set as the default. However, if no other
device is available for the role that was disconnected (e.g. if the Vive
Pro was providing the only system microphone), then pwstrDefaultDeviceId
is NULL.

In this case, we would invoke getDevice on the NULL device ID, then
attempt to print the default device name in the debug logging path; this
NULL dereference would cause AdvancedSettings to crash.

This change simply fixes the logging code to not attempt to print the
new default device name when it is NULL.
2019-01-26 18:18:45 -08:00
Vasily 629c4e2edb Separate individual components into qml files
This removes the massively indented logic in the previous version.
Notice that individual components will still be imported with an
import "utilities_page". Therefore anything except UtilitiesPage.qml
should be in a separate folder.
2019-01-26 20:29:14 +01:00
Vasily a94c37b858 Move UtilitiesPage and media_keys into separate folder
The QML at the moment is a giant mess. Moving pages into individual
folders and properly abstracting the sub components of the pages will
allow for much easier development and better error messages.
Additionally it will prevent polluting the global namespace. Really, all
the reasons for avoiding globally available values and using
abstractions in regular programming also come into play here.
2019-01-26 18:32:29 +01:00
Kung-vr de4cc5e88f Merge branch 'master' into alpha-kung 2019-01-25 00:14:33 +09:00
username223 25d2854248 Merge pull request #64 from OpenVR-Advanced-Settings/compiler/readme-updates
Update Travis CI to use clang in addition to g++, update readme, update standard to C++17
2019-01-24 06:51:05 +01:00
username223 b661e3f8b3 Merge branch 'master' into compiler/readme-updates 2019-01-23 22:51:44 +01:00
Vasily 5f17377329 Add explanation to disabled warning in .pro file
MSVC does not yet support non experimental ways of selectively disabling
warnings for some files.
2019-01-23 22:44:09 +01:00
Vasily 168d9d38fd Remove C++17 testing code
Featured C++17 features to make sure compilers would be able to handle
future C++17 features.
2019-01-23 22:33:00 +01:00
Vasily c0c824d380 Remove C++17 flags from g++ and clang
The flags are already being applied by QMAKE.
2019-01-23 22:18:28 +01:00
Vasily 20341021c5 Update travis to use clang and g++7 2019-01-23 22:16:45 +01:00
Vasily 43bf20da45 Fix msvc and clang-msvc warnings with C++17
The codecvt header has been deprecatd for C++17, but no replacement has
been specified in the standard. It is possible to use the Windows
specific MultiByteToWideChar() and WideCharToMultiByte() from
<Windows.h> instead, however the codecvt header still works so there's
no reason to change it until a proper replacement has been specified in
the standard.

It is additionally necessary to manually set the standard for clang-msvc
to C++17.
2019-01-23 20:43:44 +01:00
Vasily d04cf32863 Update CI badges, update preview version link
Having the CI on their own line prevents the initial line from getting
way too long.

The preview version link should not show in development alpha branches,
but only the relatively tested master.
2019-01-23 20:03:36 +01:00
Vasily 80a28bf744 Update readme information
The Known Bugs section was removed because that's literally why the
issue tracker exists.
2019-01-23 19:57:22 +01:00
Vasily 583a62fb9c Update readme badges to reflect C++17 and Python dependency
The badge had not been updated for C++14 when we made the change. It had
also not been updated to reflect the dependency on Python during the
creation of the build script.
2019-01-23 19:39:29 +01:00
Vasily cd6403b8ff Update .pro file and add test C++17 statements to main
The test statements are making sure C++17 features are enabled on all
compilers. They should not be pushed to master as they are.
2019-01-23 19:31:03 +01:00
username223 1fc00e054b Merge pull request #61 from OpenVR-Advanced-Settings/alt-enter
Add Alt+Enter button to keyboard keys
2019-01-23 19:22:23 +01:00
Vasily 67b9869e44 Update UtilitiesPage.png with the Alt+Enter button
Additionally, the pause/play button has also been changed since last,
but the image wasn't changed.
2019-01-23 18:50:52 +01:00
Vasily 0a49c7a717 Add Alt+Enter button to Utilities page, update Win Alt+Tab func
Requested in this reddit post:
https://www.reddit.com/r/Vive/comments/agnvux/advanced_settings_280_motion_smoothing_audio_and/ee7muqo/

Use case is toggling full screen mode on applications.

The Alt+Tab function has been updated with a constexpr var that reduces
duplication in the function calls and makes the keys even more explicit.
2019-01-23 18:49:10 +01:00