mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(steamframe-gaming): add --vr-only native mode, OpenXR controllers, minimalist VR menu & Gaming Mode launcher
This commit is contained in:
1 parent
0823a9e682
commit
128afc2810
12 files changed
+793
-124
No files matched your search
@@ -1,4 +1,8 @@
|
||||
# Règle Udev pour le récepteur Eachine Sphere Link (Radxa Zero 3W / Rockchip RV1106 / RNDIS)
|
||||
# Déclenche l'attribution de l'IP 192.168.1.10/24 dès que le câble USB-C est branché sur le Steam Frame ou PC
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="net", KERNEL=="usb*|enx*", ATTRS{idVendor}=="1d6b|2207|0525", RUN+="/usr/bin/ip addr add 192.168.1.10/24 dev %k", RUN+="/usr/bin/ip link set dev %k up"
|
||||
|
||||
# Accès HIDRAW non-root (uaccess) pour le Steam Controller (Ibex 28de:1302..1305) en Mode Gaming SteamOS
|
||||
# Permet la lecture directe des rapports 0x42 et les retours haptiques 0x80 sans sudo ni conflit Lizard Mode
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1302|1303|1304|1305", MODE="0660", TAG+="uaccess"
|
||||
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1302|1303|1304|1305", MODE="0660", TAG+="uaccess"
|
||||
@@ -25,12 +25,20 @@ if [ "$ARCH" = "aarch64" ]; then
|
||||
export RUSTFLAGS="-C target-cpu=native -C opt-level=3"
|
||||
cargo build --release
|
||||
|
||||
echo "[3/3] Installation locale du lanceur .desktop..."
|
||||
echo "[3/3] Installation locale des lanceurs .desktop (Bureau GPUI + Mode VR Gaming)..."
|
||||
mkdir -p ~/.local/share/applications
|
||||
cp steamframe-fpv.desktop ~/.local/share/applications/
|
||||
sed -i "s|/home/deck/projects/steamframe_fpv|$DIR|g" ~/.local/share/applications/steamframe-fpv.desktop
|
||||
chmod +x "$DIR/launch.sh" "$DIR/launch_vr.sh"
|
||||
for desktop_file in steamframe-fpv.desktop steamframe-fpv-vr.desktop; do
|
||||
cp "$desktop_file" ~/.local/share/applications/
|
||||
sed -i -E \
|
||||
-e "s|^Exec=.*/(launch(_vr)?\.sh)|Exec=$DIR/\1|g" \
|
||||
-e "s|^Path=.*|Path=$DIR|g" \
|
||||
-e "s|^Icon=.*/assets/|Icon=$DIR/assets/|g" \
|
||||
"$HOME/.local/share/applications/$desktop_file"
|
||||
done
|
||||
|
||||
echo "=== SUCCÈS : Binaire compilé dans $DIR/target/release/steamframe-fpv ==="
|
||||
echo " Mode Gaming : ajoutez 'SteamFrame FPV (Mode VR)' (launch_vr.sh) en jeu non-Steam."
|
||||
else
|
||||
echo "[!] Exécution sur hôte ${ARCH} (Ubuntu / PC de développement)."
|
||||
echo "[2/3] Compilation Release hôte standard..."
|
||||
@@ -39,7 +47,7 @@ else
|
||||
echo "[3/3] Création de l'archive de déploiement pour le Steam Frame..."
|
||||
mkdir -p dist
|
||||
tar --exclude="target" --exclude=".git" -czf dist/steamframe-fpv-deploy.tar.gz \
|
||||
Cargo.toml Cargo.lock src scripts assets README.md launch.sh steamframe-fpv.desktop
|
||||
Cargo.toml Cargo.lock src scripts assets README.md launch.sh launch_vr.sh steamframe-fpv.desktop steamframe-fpv-vr.desktop
|
||||
|
||||
echo "=== SUCCÈS : Archive de déploiement créée dans $DIR/dist/steamframe-fpv-deploy.tar.gz ==="
|
||||
echo "Pour déployer sur le casque, lancez : ./scripts/deploy_to_steamframe.sh [ip_steamframe]"
|
||||
|
||||
@@ -23,7 +23,7 @@ echo "[2/5] Préparation du paquet de déploiement..."
|
||||
echo "[3/5] Transfert des fichiers du projet sur le Steam Frame..."
|
||||
ssh "${TARGET_HOST}" "mkdir -p ~/projects/steamframe_fpv"
|
||||
scp dist/steamframe-fpv-deploy.tar.gz "${TARGET_HOST}:~/projects/steamframe_fpv/"
|
||||
ssh "${TARGET_HOST}" "cd ~/projects/steamframe_fpv && tar -xzf steamframe-fpv-deploy.tar.gz && chmod +x scripts/*.sh launch.sh"
|
||||
ssh "${TARGET_HOST}" "cd ~/projects/steamframe_fpv && tar -xzf steamframe-fpv-deploy.tar.gz && chmod +x scripts/*.sh launch.sh launch_vr.sh"
|
||||
|
||||
echo "[4/5] Installation de la règle udev USB RNDIS (auto-attribution 192.168.1.10/24)..."
|
||||
scp scripts/99-radxa-vrx-rndis.rules "${TARGET_HOST}:/tmp/"
|
||||
|
||||
Reference in new issue
Block a user