aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-07-03Use correct cursor offset, add --cursor-scale option to change cursor scaledec05eba-10/+31
2020-07-02Change title of companion window to vr-video-playerdec05eba-12/+1
2020-07-02Show cursor instead of yellow circledec05eba-35/+129
2020-07-02Fix crash when closing target windowdec05eba-0/+22
2020-06-13Set width/height ratio of plane to the same as the target window and reduce ↵dec05eba-14/+16
curvature
2020-06-13Only follow camera in sphere projection modedec05eba-9/+46
2020-06-13try to improve capture a little bitWebFreak001-1/+5
I'm not too sure if the pixmap config part actually changes something like this but the API of glXCreatePixmap says it will result in a BadMatch error if the window doesn't have the GLX_WINDOW_BIT. Also adds some XSync calls which help debugging crashes.
2020-06-13add APIs to control mouse cursorWebFreak001-0/+43
not currently used yet, but useful if we add VR controller support to point and click inside VR on the window.
2020-06-13trim "window:" from start of window IDWebFreak001-0/+4
Allows to simply copy-paste the output of `xdotool getmouselocation` when double clicking the window ID without needing to manually remove it from the start. Yes I'm lazy
2020-06-13show mouse cursor as yellow circle inside VRWebFreak001-0/+27
when the cursor is over the tracked window, show a yellow cursor in the VR view where it would be. Useful if you are moving the cursor and clicking on things while showing a window such as firefox in VR.
2020-06-13add ability to reset rotation via signal + gamepadWebFreak001-2/+30
The gamepad change isn't the best as it requires the window to be focused, but it allows to use a wireless gamepad to reset the rotation and position like using the w key on the keyboard. I currently hardcoded the reset button to 6 on a joystick, which was equal to the select button on my steam controller using sc-controller simulating an xbox controller. Maybe the controller update isn't quite fit to stay and should use the VR controllers instead & work without focus. The more interesting part of this patch is adding signal handling of SIGUSR1 or SIGUSR2 to do the same thing. This allows to simply run a command like `killall -USR1 vr-video-player` to reset the rotation and position even without window focus. This is especially useful for example for adding a custom command action to KDE connect so you can reset the VR view from your phone without needing to have any special software. However I believe even this signal handling should eventually be replaced with some more advanced API like dbus or a unix socket to also allow for more advanced features like changing tracked windows on the fly.
2020-06-13remove q/escape button to quitWebFreak001-5/+0
regular alt-f4 (or similar) key combinations work fine
2020-06-13use quaternions for resetting rotationWebFreak001-6/+6
now uses yaw, pitch and roll for resetting rotation this is something very opinionated, but is useful for example when lying down and looking up
2020-06-13make moving around head not move around pictureWebFreak001-4/+6
use reset rotation (W) to reset position as well now
2020-06-13add cylindrical projectionWebFreak001-7/+40
basically a curved monitor floating in front of you. Nicer to look at for long periods of time.
2020-06-13add --plane mode for plane in 3D space to look atWebFreak001-6/+31
2020-06-04Fix freeze on target window resizedec05eba-145/+180
2020-05-03Add key to reset rotation of videodec05eba-46/+42
2020-05-02Remove unused files and soil dependencydec05eba-2/+0
2020-05-02Attempt to reduce stutteringdec05eba-6/+6
2020-05-01Enable vsyncdec05eba-1/+1
2020-05-0132 bit colordec05eba-0/+1
2020-05-01Fix incorrect colors on systems that support 10-bit outputdec05eba-0/+1
2020-05-01Fix build for ubuntu and fedora (missing glm ext files)dec05eba-10/+10
2020-05-01Show video forward as set by steamvr, instead of showing it backwardsdec05eba-2/+3
2020-05-01Add option to switch left and right view and to disable video stretchingdec05eba-2/+21
2020-04-30Find config file and exit if not founddec05eba-1/+10
2020-04-30Add option for flat projection and zoom leveldec05eba-98/+146
2020-04-29Fix for DE (xfce4). Only redirect the target windowdec05eba-5/+1
2020-01-05make it workDEC05EBA-239/+71
2020-01-05cursor...wipDEC05EBA-74/+291
2019-12-16Replace homemade matrix/vector classes with glmDEC05EBA-125/+124
2019-12-16Fix controller not showingDEC05EBA-2/+7
2019-12-16initial commitDEC05EBA-0/+2130