Commit Graph
59 Commits
Author SHA1 Message Date
Kung-vr bdf4227e5c Clean up offsets tab ui 2019-03-19 15:05:02 +09:00
Kung-vr 925d67cf38 Implement gravity options and ui (#117) 2019-03-17 19:29:10 -05:00
Kung-vr ab69d3180c New chaperone adjust system and height toggle action (and Ykeara's PTT fix) (#108)
* Improve reset function and velocity timing

* fixed PTT checkbox error

* Rewrite of chaperone adjust. Make drift impossible

* Formatting

* fixed mic mute on exit

* format

* Clean up interactions with new chaperone adjust

* Remove commented code

* Implement height toggle action and ui
2019-03-15 16:49:44 -05:00
Kung-vr 282827d1ff Resubmit for appveyor 2019-03-10 00:16:00 +09:00
Kung-vr 566762ebce Improve clampVelocity parameter readability 2019-03-08 20:18:18 +09:00
Kung-vr 40b283e313 Add bindable axis lock actions 2019-03-07 17:19:17 +09:00
Kung-vr a00d2717e8 Implemented gravity 2019-03-06 20:37:14 +09:00
Kung-vr 884343783c Move quaternion functions to quaternion namespace 2019-03-04 01:39:33 +09:00
Kung-vr db54adaa4d Make drag hand swap action functional 2019-03-04 00:56:17 +09:00
Kung-vr f233a537a5 Make snap turn and reset offset binds functional 2019-03-03 20:41:29 +09:00
Kung-vr c0270fc965 temp change to avoid compiler warnings 2019-03-03 02:27:36 +09:00
Kung-vr f4373f4a99 Fix some implicit conversion warnings 2019-03-03 02:14:44 +09:00
Kung-vr 0f2f956b2e Manual Merge Cleanup 2019-03-03 01:02:53 +09:00
Kung-vr 53d5431da7 Add actions and placeholder functions to movecentertab 2019-03-02 23:54:27 +09:00
Kung-vr 55e0915fc4 Add motion page, comfort mode, rename "room" to "space" 2019-02-10 23:55:48 +09:00
Kung-vr 6a90f66b2e Split off hand-turn hand-drag and hmdrotation
Hand-turn hand-drag and hmdrotationstats counting are split off into separate functions from the event loop.
2019-02-03 22:42:50 +09:00
Kung-vr 5832eea951 Create quaternion.h to centralize quaternion math 2019-02-02 22:36:19 +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 775aaa7cd0 Support new steamvr input for playspace rotate and move 2019-01-28 02:45:29 +09:00
Kung-vr 499a0e3ede Fix rotation counter stats during rotation drag 2019-01-24 00:58:15 +09:00
Kung-vr 47920bfa74 Fix gimbal-lock when controller pointed up or down
Compare old and new pose via a relative quaternion rather than relative yaw, then calculate the resulting yaw-difference from the quaternion in one go.
2019-01-17 02:32:08 +09:00
Kung-vr 0c0a616691 Clean-up after merge 2019-01-17 02:01:23 +09:00
Kung-vr 6fcf0b1a54 Merge branch 'master' into alpha-kung 2019-01-17 01:55:12 +09:00
Kung-vr 089862e876 Apply fix for reset button rotation from alpha-kung branch 2019-01-15 23:23:34 +09:00
Kung-vr 53138c5fef Implemented vsync tick for event loops 2019-01-14 03:24:15 +09:00
Kung-vr d0e2c15e7a Increased rotation granularity to 0.01 desgrees 2019-01-13 10:04:21 +09:00
Kung-vr 58ef2e02b4 New Feature: Control rotation during virtual move
It's now possible to rotate the playspace by turning the controller during a virtual move playspace drag. The feature is activated via a checkbox on the playspace tab. If X Y Z axis lock checkboxes are also checked only rotation will be applied. Offsets will still accumulate as the user swings the playspace around because rotation is now centered at head. This feature is intended for use with manual redirected walking (allowing the user to virtually walk in a straight line while walking circles in physical space). This distance walked is reflected in the X,Z offsets.
2019-01-13 00:43:21 +09:00
Vasily 51057c1d79 Format every single file using .clang-format 2018-12-28 03:06:42 +01:00
Vasily b097908b12 Rename parameters shadowing class members
Parameters with the same name as class members are ripe for introducing
bugs. The fact that the "this->" syntax is optional creates confusion
for maintaining programmers who can only guess at the intention.
2018-12-27 18:27:27 +01:00
Vasily 9a2c388a1c Solve initialization bug in MOveCenterTabController
GCC gave error

../src/tabcontrollers/MoveCenterTabController.cpp:57:67: error:
operation on
‘((advsettings::MoveCenterTabController*)this)->advsettings::MoveCenterTabController::lastMoveButtonClick[0]’
may be undefined [-Werror=sequence-point]

Because assigning a value to itself twice is undefined behavior. It is
highly likely that intended behavior was to initialize both array
members to the same value at once.
2018-12-27 12:14:07 +01:00
ykeara 9782839749 added apply button to rotate playspace instead of automatically rotating 2018-12-16 13:58:00 -06:00
ykeara f473e500af fixed CheckBox Toggles In playspace Tab 2018-11-25 22:43:56 -06:00
ykeara 3596562bd0 Added axis locks to playspace mover 2018-11-03 19:36:15 -05:00
Robin Appelman 837a91f920 Add option to require double click to move 2018-07-08 18:08:09 +02:00
Robin Appelman 4e2a4bd570 verify pose during virtual move 2018-04-02 11:57:40 +02:00
Robin Appelman 9fb22b7d0b use temp chaperone config during move 2018-04-02 02:16:25 +02:00
Robin Appelman ceeb62235c fix move button sometimes getting suck 2018-04-02 02:15:39 +02:00
Robin Appelman 64bbe88206 fix toggle adjust chaperone with rotation 2018-04-02 02:14:52 +02:00
Robin Appelman f540125149 simplify move playspace code 2018-03-28 19:24:48 +02:00
Robin Appelman 1a260fbceb only revert working copy once 2018-03-27 00:03:48 +02:00
Robin Appelman 5fc0cc8fcb offset all 3 axis in one go 2018-03-21 21:35:53 +01:00
Robin Appelman f425dccd40 fix playspace offset not updating in ui when using move shortcut 2018-03-21 21:11:41 +01:00
Robin Appelman d3ba00c01d add move shortcut settings and deal with double handed moves 2018-03-20 21:53:42 +01:00
Robin Appelman df7948293d deal with rotated playspace while moving 2018-03-19 20:38:19 +01:00
Robin Appelman a185c7a318 fix jitter while moving 2018-03-19 01:47:10 +01:00
Robin Appelman f9cf2880cd initial work on virtual move shortcut 2018-03-14 16:48:10 +01:00