Commit Graph
222 Commits
Author SHA1 Message Date
Vasily dafc977bbe Add Linux sendKeyboardInput
This implementation has several problems.
1) It only really deals with Latin1 characters. This is the same as the
Windows implementatino.
2) It doesn't handle modifier keys at all. This is also a problem with
the Win implementation.

This is an interim solution until a unified strategy can be made for
both Windows/Linux.
2019-04-22 09:56:50 +02:00
Vasily 381fe3aee3 Add Ctrl+C/Ctrl+V keybinds to X11 version 2019-04-22 09:56:50 +02:00
Vasily 1536059a4b Replace X11 enter key
Tester @Goofybud on Debian reported that the enter button did not work.
There are apparently 4 different enter buttons in X11:
    XK_Linefeed
    XK_Return
    XK_KP_Enter
    XK_ISO_Enter

I am attempting XK_Return because it seems like the most obvious next
attempt.
2019-04-22 09:56:50 +02:00
Vasily 86ec4975fc Add Linux impl of some keyboard inputs 2019-04-22 09:56:50 +02:00
Vasily 860eca1956 Add compiling on Ubuntu for X11 funcs 2019-04-22 09:56:50 +02:00
Vasily 7a3737e0de Initial X11 groundwork 2019-04-22 09:56:50 +02:00
Kung-vr 591ea90383 Add some settings logging 2019-04-21 17:58:25 +09:00
Kung-vr 48f0743bf9 Add Old-Style Motion Setting 2019-04-21 17:57:39 +09:00
Vasily 387ae30899 Fix indentation with clang-format 8
AppVeyor automatically updated to LLVM 8 while everything else was on 7.
It is not possible to downgrade to LLVM 7 on AppVeyor, so we'll update
everything else to LLVM 8.
2019-04-19 15:29:18 +02:00
Kung-vr fcbc11e659 Fix possible startup issue on WMR (#160)
* Add more checks for zero quads count for WMR

* Delay initial zeroOffsets() to init stage2

* Re-add OpenVR 1.3.22 libraries
2019-04-17 12:56:27 -05:00
Kung-vr 9791455cbf Reload chaperone warnings on motion halt 2019-04-14 17:55:16 +09:00
Kung-vr ed8cc8ddf6 Add Ctrl-C and Ctrl-V buttons to utilities tab 2019-04-14 17:54:08 +09:00
Kung-vr c3e9d7afe4 Fix chaperone updates not updating chaperone warnings reference (#154) 2019-04-13 14:48:24 -05:00
ykeara 3dadf81b3e changed math.h to cmath 2019-04-12 21:15:57 -05:00
ykeara a99e4c07e1 updated documentation minor fixes 2019-04-12 21:03:49 -05:00
ykeara 59caa8e1af qml format changes and format 2019-04-12 18:42:17 -05:00
ykeara 9de14e20cb merged master to brightness 2019-04-12 18:25:14 -05:00
ykeara e2e68ecc89 adjusted profiles and switched to cubed root for linearization of brightness 2019-04-12 18:18:49 -05:00
ykeara ae800e6f3a save brightness OverlaySettings 2019-04-12 17:46:10 -05:00
Kung-vr b32d621994 Implement Seated Universe and Raw (Room Setup) Universe Support (#150)
* Add checks for seated improve shutdown state

Seated mode chaperone update is still broken. Normal standing mode space motion needs testing on WMR and Rift

* Fix updating chaperone on room setup completion

* Implement seated universe recenter/offsets/motion

Addresses #145

* Add Option "Allow External App Chaperone Edits"

This option is added to the settings tab. It allows external apps to modify the chaperone but only if the current offset is 0,0,0 and rotation is 0. The option is disabled by default.
2019-04-12 13:46:06 -05:00
ykeara 9b61eb86c1 fixed logarithmic viewing 2019-04-12 13:15:39 -05:00
ykeara 95ddbcbe3f brightness cleaned up 2019-04-11 23:20:05 -05:00
ykeara 5d41c7757f moved overlay to .01 m from .3 m 2019-04-11 20:57:05 -05:00
ykeara 17b31734be fixed c++ errors 2019-04-11 19:50:12 -05:00
ykeara ed8e3a9852 fixed header compile errors 2019-04-10 21:32:24 -05:00
ykeara cfec157e2d added main loop logic for videotab 2019-04-10 21:11:04 -05:00
ykeara d866725724 get/set implemented 2019-04-10 20:09:39 -05:00
Vasily b53ebb699f Remove version specific header files for KeyboardInput
The headers were identical after no longer using the abstract class for
platform independence.
2019-04-04 14:01:11 +02:00
Vasily e7df60311c Convert keyboardinput from class to regular header
No consistent state is needed so it doesn't make sense for it to be a
class.
2019-04-04 14:01:11 +02:00
Vasily 82d44b4ab5 Move KeyboardInput file into keyboardinput folder 2019-04-04 14:01:11 +02:00
Vasily c8f4ea4ea0 Convert KeyboardInput to non-virtual class 2019-04-04 14:01:11 +02:00
ykeara a382137ef4 qml add 2019-04-03 20:50:08 -05:00
ykeara ddd413fa13 dimmer in-prog 2019-04-02 21:31:03 -05:00
Vasily cba76f6846 Remove old desktop width C++ code 2019-03-31 22:31:26 +02:00
Kung-vr bcdf87b0f5 WMR/Rift bind release reset fix and space fix undo disable (#142)
* Test removal of HideWorkingSetPreview for issue #133

* Update WorkingSetPreview on apply reset data for issue #133

* fixed bug to apply floor fix offsets properly

* updated version to 3.0.1

* format

* Prevent space offsets effect on fix floor measurement

* Reorder chaperone commit timing on reset

This is an attempt to smooth apparent ~0.1sec lag on first movement after using a reset.

* Fix space fix tab (todo: reimplement undo button)
2019-03-30 13:56:27 -05:00
Vasily d654567d98 Convert to new paths system 2019-03-19 16:10:35 +01:00
Kung-vr ccfb22c3b2 Slight ui cleanup 2019-03-19 15:06:47 +09:00
Kung-vr 510e3291f4 Add snap turn angle settings ui 2019-03-19 15:05:29 +09:00
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
ykeara 3c5cab72e5 Chaperone Tab Update (#101)
* added actions for haptics

* Haptic WIP #1 crash on haptic event

* haptics rough implemented

* fixed action names and prox sensor work-around

* added workaround to catch-all in begineer chaperone switch

* added idle work-around to alarm warning

* changed visibility slider values to reflect new API limits

* added disable chaperone

* added display Logic

* fixed visibility slider display and some saving fade distance when chaperone disabled

* fixed warnings not always working (hopefully) centralized action/input keys into ivrinput.h

* default bindings for HMD's

* chaperone input re-factor

* refactored ivrinput class

* fixed naming errors commented out prox testing

* formatting removed commented code

* format

* fixed compiler warnings

* updated documentation

* Reduced reload chaperone calls

* adjusted haptics for chaperone bounds warnings
2019-03-15 15:19:23 -05:00
ykeara 55b6d5de66 Added Knuckles FloorFix feature (prelim) (#100)
* added early knuckles support to floor fix.

* removed commented out code

* formatted
2019-03-15 14:52:48 -05:00
Vasily 815fc15414 Fix formatting
QtCreator does not reformat things when using the "Refactor Symbol"
option.
2019-03-11 12:42:35 +01:00
Vasily 5b9e94869c Move application strings into separate namespace
Them being in the overlay controller required them to be static, which
forces the compiler to give them a memory location at compile time. They
also don't really fit into the overlaycontroller.
2019-03-11 11:24:57 +01:00
Vasily 9b701688fd Make desktop overlay log debug instead of info
This prevents spam of something that is highly likely to happen and out
of our control.
2019-03-10 23:12:26 +01:00
Vasily b7ff972997 Update desktop overlay waiting logic
The old version waited for a set amount of time (2 seconds) before
checking and then exiting. The new logic checks every second for up to 7
seconds. This should deal with variances in startup time across
machines. On my machine the desktop overlay seems to be initialized
after 2-3 seconds.
2019-03-10 23:12:26 +01:00
Vasily 9f85af81d1 Save desktop width setting
The 2 seconds is arbitrarily chosen. The problem seems to be that
Valve's own overlays are not being initialized before custom overlays,
leading to the Desktop overlay sometimes not being present when our
overlay initializes.

The second if statement inside the first one checking a second time is
definitely a little disgusting, but for now it gets the job done.

The 4.0 default was arbitrarily chosen by whoever decided to initialize
the variable in the class.
2019-03-10 23:12:26 +01:00
Vasily 1d103a5265 Move desktop overlay set up into separate function 2019-03-10 23:12:26 +01:00
Kung-vr 282827d1ff Resubmit for appveyor 2019-03-10 00:16:00 +09:00