mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-23 11:00:47 +02:00
Turn a bare hand palm up toward your face and look at it: after 0.3 s a small ring shows above the palm and follows it, like the Vision Pro's home indicator. A thumb-index pinch tap by that hand runs `ft-steam menu` (opens the Steam menu, or closes the dashboard); the ring is blue while the pinch is held. ft-screens owns it (screens/palmmenu.cpp) and reports that hand near while the ring shows, so the pointer helper doesn't also gaze-click the pinch. The helper is unchanged. HANDS_PALM_MENU=0 turns it off; `palmmenu on|off|state`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
688 B
Bash
Executable File
11 lines
688 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Near hand input and the hand matte, offline (screens/tests/handinput_test.cpp): the unit tests,
|
|
# then each publish dump given (ft-handreplay --publish-dump: recorded hands as ft-hands
|
|
# published them) against panels placed around the hands.
|
|
# scripts/test-handinput.sh [DUMP...]
|
|
set -euo pipefail
|
|
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
dumps=$(printf ' %q' "$@")
|
|
"$root/scripts/frame.sh" -C screens "mkdir -p build && g++ -std=c++17 -O2 -Wall -Wextra -Wno-unused-parameter -Werror \
|
|
tests/handinput_test.cpp handcut.cpp handinput.cpp palmmenu.cpp -o build/handinput-test && build/handinput-test${dumps:+ && build/handinput-test --replay$dumps}"
|