mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
Fit VR games on the glasses: full view, seated origin at the head, pad hands reach with the d-pad
This commit is contained in:
1 parent
a746d56dc8
commit
7c8fa679bd
6 files changed
+51
-8
No files matched your search
+7
-1
@@ -491,6 +491,10 @@ def execute(args: argparse.Namespace, adb: str, serial: str) -> dict:
|
||||
request.update(key=args.key, value=args.value)
|
||||
elif args.glasses_op == "simulate":
|
||||
request["seconds"] = args.seconds
|
||||
if args.yaw is not None:
|
||||
request["yaw"] = args.yaw
|
||||
if args.pitch is not None:
|
||||
request["pitch"] = args.pitch
|
||||
elif args.glasses_op == "mode":
|
||||
request["mode"] = args.mode
|
||||
elif args.glasses_op == "imu":
|
||||
@@ -673,8 +677,10 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
glasses_set = glasses_ops.add_parser("set", help="refreshHz, sbsHz, brightness, volume, sunblock, 3d, gameOnGlasses, headTracking, auto3d")
|
||||
glasses_set.add_argument("key")
|
||||
glasses_set.add_argument("value")
|
||||
glasses_sim = glasses_ops.add_parser("simulate", help="feed a moving head pose (yaw, pitch and roll sweeps)")
|
||||
glasses_sim = glasses_ops.add_parser("simulate", help="feed a moving head pose (yaw, pitch and roll sweeps), or hold one")
|
||||
glasses_sim.add_argument("--seconds", type=int, default=20)
|
||||
glasses_sim.add_argument("--yaw", type=float, help="hold this yaw (degrees, left positive) instead of sweeping")
|
||||
glasses_sim.add_argument("--pitch", type=float, help="hold this pitch (degrees, down positive) instead of sweeping")
|
||||
glasses_ops.add_parser("stop-simulate")
|
||||
glasses_ops.add_parser("query", help="ask the glasses for their display mode, brightness, volume and IMU state")
|
||||
glasses_mode = glasses_ops.add_parser("mode", help="send a display mode byte, e.g. 0x31 (1080p60), 0x34 (1080p120), 0x32 (3D)")
|
||||
|
||||
Reference in new issue
Block a user