refine watch grab & hand switch

This commit is contained in:
galister
2025-12-10 18:29:13 +09:00
parent 87806a84d2
commit 6294ccae1c
4 changed files with 70 additions and 62 deletions

View File

@@ -131,24 +131,16 @@ fn key_to_pos(key: &str) -> Positioning {
const fn pos_to_key(pos: Positioning) -> &'static str {
match pos {
Positioning::Static => "static",
Positioning::Anchored | Positioning::AnchoredPaused => "anchored",
Positioning::Anchored => "anchored",
Positioning::Floating => "floating",
Positioning::FollowHead { .. } | Positioning::FollowHeadPaused { .. } => "hmd",
Positioning::FollowHead { .. } => "hmd",
Positioning::FollowHand {
hand: LeftRight::Left,
..
}
| Positioning::FollowHandPaused {
hand: LeftRight::Left,
..
} => "hand_l",
Positioning::FollowHand {
hand: LeftRight::Right,
..
}
| Positioning::FollowHandPaused {
hand: LeftRight::Right,
..
} => "hand_r",
}
}