Compare commits

...
Author SHA1 Message Date
HannahPadd 20d9740196 Merge remote-tracking branch 'origin/main' into hannah/frame_hotfixes 2026-09-15 11:16:00 +02:00
Sapphire 400b48c419 Fix order of tap detection tracker settings (#1893) 2026-09-15 11:14:47 +02:00
HannahPadd 76f220d4f4 Prevent clicking and dragging of Anchor tags and Navlinks to help with VR controller navigation. 2026-09-15 10:58:49 +02:00
HannahPadd 9c624cc23d Prevent clicking and dragging of Anchor tags and Navlinks to help with VR controller navigation. 2026-09-15 10:57:48 +02:00
Sapphire d4a2a61e32 Change UDP tracker status to OK from TIMED_OUT on rotation/accel update (#1923) 2026-09-15 10:56:55 +02:00
Sapphire ba7b0d6deb Delay startup of bindings provider to work around SteamVR startup issues (#1906) 2026-09-15 10:56:55 +02:00
Sapphire 7ee60b8ce0 Use app key of SlimeVR Steam application for bindings provider (#1908) 2026-09-15 10:56:55 +02:00
Sapphire 7c279e355d Tap reset selection GUI cleanup (#1909) 2026-09-15 10:56:55 +02:00
HannahPadd 63bdcd9201 Prevent clicking and dragging of Anchor tags and Navlinks to help with VR controller navigation. 2026-09-15 10:52:42 +02:00
Sapphire 516b8ee11b Add socket path used when under pressure-vessel to bindings provider (#1905) 2026-09-15 10:52:05 +02:00
Eiren Rain 03bae59ec8 Update CONTRIBUTING.md 2026-09-15 10:52:05 +02:00
Sapphire a3e70772d1 Fix order of tap detection tracker settings (#1893) 2026-09-15 10:52:05 +02:00
HannahPadd 5bb5a30336 commit to save changes 2026-08-12 15:39:14 +02:00
HannahPadd 4e3abbb214 Fix issue with window not showing up in vr. Fix issue with wrong steamvr path. 2026-07-22 17:42:12 +02:00
HannahPadd ade2298a69 More ui changes 2026-07-15 11:45:17 +02:00
HannahPadd c834661060 Fast forward branch 2026-07-15 11:29:22 +02:00
HannahPadd 1cc911d994 UI updates for vr controllers 2026-07-15 11:28:01 +02:00
HannahPadd c3d16403d5 Prevent clicking and dragging of Anchor tags and Navlinks to help with VR controller navigation. 2026-07-15 10:25:54 +02:00
HannahPadd 82f6978d3d Enable WebXR, needed for steamVR to pickup the window. 2026-07-15 10:22:15 +02:00
HannahPadd c255b560eb Maybe fixed? 2026-07-15 10:22:15 +02:00
HannahPadd a2b0ae1ffe Prevent clicking and dragging of Anchor tags and Navlinks to help with VR controller navigation. 2026-07-15 10:21:43 +02:00
HannahPadd 4e70cbf04b Enable WebXR, needed for steamVR to pickup the window. 2026-07-15 09:52:48 +02:00
HannahPadd aa07e4f7be Maybe fixed? 2026-06-17 13:47:21 +02:00
9 changed files with 63 additions and 18 deletions

No files matched your search

+13 -1
View File
@@ -29,7 +29,6 @@ import {
} from './paths';
import { initStores } from './store';
import { closeLogger, logger } from './logger';
import { spawn } from 'node:child_process';
import { discordPresence } from './presence';
import { options } from './cli';
@@ -47,6 +46,13 @@ if (process.platform === 'linux') {
app.commandLine.appendSwitch('force-color-profile', 'srgb');
}
console.log(options);
// SteamVR will not see the application if this is not enabled
if (options.steam) {
app.commandLine.appendSwitch('enable-features', 'Vulkan,WebXR,WebXROpenXR');
app.commandLine.appendSwitch('enable-xr-sandbox');
}
app.setPath('userData', getGuiDataFolder());
app.setPath('sessionData', join(getGuiDataFolder(), 'electron'));
@@ -501,6 +507,12 @@ app.whenReady().then(async () => {
logger.info('SlimeVR started!');
process.on('exit', async (code) => {
console.log(code);
server?.close();
await server?.waitForExit();
});
app.on('window-all-closed', () => {
app.quit();
});
+2 -1
View File
@@ -34,7 +34,8 @@ export function NavButton({
className={classnames(
'flex flex-col justify-center xs:gap-4 mobile:gap-2',
'mobile:w-[65px] mobile:h-[65px]',
'xs:py-3 mobile:py-4 rounded-md mobile:rounded-b-none group',
'xs:py-3 mobile:py-4 rounded-md mobile:rounded-b-none group select-text',
'vr-button',
{
'bg-accent-background-50 fill-accent-background-20': doesMatch,
'hover:bg-background-70': !doesMatch,
+2 -1
View File
@@ -98,7 +98,8 @@ export function Button({
'rounded-full p-2 text-center min-h-[35px] min-w-[35px]': rounded,
'rounded-md px-5 py-2.5': !rounded,
},
props.className
props.className,
'vr-button'
);
}, [variant, disabled, rounded, props.className]);
+10 -6
View File
@@ -27,12 +27,16 @@ export function Radio<T extends FieldValues = FieldValues>({
name={name}
render={({ field: { onChange, ref, name, value: checked } }) => (
<label
className={classNames('w-full p-3 rounded-md flex gap-3 border-2', {
'border-accent-background-30': value == checked,
'border-transparent': value != checked,
'bg-background-60 cursor-pointer hover:bg-background-50': !disabled,
'bg-background-80 cursor-not-allowed': disabled,
})}
className={classNames(
'w-full p-3 rounded-md flex gap-3 border-2 vr-button',
{
'border-accent-background-30': value == checked,
'border-transparent': value != checked,
'bg-background-60 cursor-pointer hover:bg-background-50':
!disabled,
'bg-background-80 cursor-not-allowed': disabled,
}
)}
>
<input
type="radio"
+1 -1
View File
@@ -79,7 +79,7 @@ export function ResetButton({
variant="primary"
disabled={disabled}
>
<div className="flex flex-col">
<div className="flex flex-col vr-button">
<div className="opacity-0 h-0">
{children || <Localized id={name} />}
</div>
@@ -160,7 +160,7 @@ export function BodyAssignment({
highlightedRoles={highlightedRoles}
onSelectRole={onRoleSelected}
leftControls={
<div className="flex flex-col justify-between h-full text-right">
<div className="flex flex-col justify-between h-full text-right vr-button">
<div className="flex flex-col gap-2">
{hasBodyPart(BodyPart.HEAD) && (
<TrackerPartCard
+1 -1
View File
@@ -173,7 +173,7 @@ export function TrackerCard({
<div
onClick={onClick}
className={classNames(
'rounded-lg overflow-hidden transition-[box-shadow] duration-200 ease-linear',
'rounded-lg overflow-hidden transition-[box-shadow] duration-200 ease-linear vr-button',
interactable && 'hover:bg-background-50 cursor-pointer',
outlined && 'outline outline-2 outline-accent-background-40',
bg
+15
View File
@@ -433,3 +433,18 @@ a,
-webkit-user-select: none;
user-select: none;
}
a,
.nav-link {
-webkit-user-drag: none;
-webkit-user-select: none;
user-select: none;
touch-action: none;
}
.vr-button {
-webkit-user-drag: none;
-webkit-user-select: none;
user-select: none;
touch-action: none;
}
@@ -5,18 +5,30 @@ import io.eiren.util.logging.LogManager
class Linux {
val path: String = System.getProperty("user.dir")
val isFrame = System.getenv("SLIME_SERVER_IS_FRAME")?.toInt()
fun updateLinux() {
updateLinuxSteamVRDriver()
}
fun updateLinuxSteamVRDriver() {
val steamVRLocation = SteamUtils.findAppLibraryLocation(250820)?.resolve("steamapps/common/SteamVR") ?: run {
LogManager.warning("SteamVR driver installation failed: couldn't find SteamVR")
return
}
val pathRegPath = "$steamVRLocation/bin/vrpathreg.sh"
val pathRegPath =
if (isFrame == 1) {
"/opt/steamvr/bin/linuxarm64/vrpathreg"
} else {
val steamVRLocation = SteamUtils.findAppLibraryLocation(250820)?.resolve("steamapps/common/SteamVR")
if (steamVRLocation != null) {
LogManager.warning("SteamVR driver installation failed: couldn't find SteamVR")
null
} else {
"${steamVRLocation}/bin/vrpathreg.sh"
}
}
if (pathRegPath == null) return
val (findExitCode, _) = executeShellCommand(pathRegPath, "finddriver", "slimevr") ?: run {
LogManager.warning("SteamVR driver installation failed: couldn't run vrpathreg finddriver")
return
@@ -40,6 +52,6 @@ class Linux {
}
companion object {
private const val LINUX_STEAM_DRIVER_DIRECTORY = "slimevr-openvr-driver-x64-linux"
private const val LINUX_STEAM_DRIVER_DIRECTORY = "slimevr-openvr-driver"
}
}