Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
curvature
|
|
|
|
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.
|
|
not currently used yet, but useful if we add VR controller support to
point and click inside VR on the window.
|
|
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
|
|
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.
|
|
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.
|
|
regular alt-f4 (or similar) key combinations work fine
|
|
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
|
|
use reset rotation (W) to reset position as well now
|
|
basically a curved monitor floating in front of you. Nicer to look at
for long periods of time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|