feat(player): add mobile directional pad controls
This commit is contained in:
+5
-1
@@ -20,7 +20,11 @@ layouts hide the direction pad and retain swipes; tablet and desktop layouts
|
||||
show the direction pad and also accept swipes. The persistent `OK` control
|
||||
sends `drop_key` and exposes the accessible label `Сбросить ключ`.
|
||||
|
||||
The centered player avatar is also the touch movement handle. Its transparent
|
||||
On phones, an always-visible four-button directional pad is the primary touch
|
||||
control. Its inactive centre prevents diagonal input; each button sends one of
|
||||
the same four authoritative movement intentions and a held button repeats no
|
||||
faster than every 170 ms. The centered player avatar is also an optional touch
|
||||
movement handle. Its transparent
|
||||
target is 96 by 96 CSS pixels while the visible avatar can deflect at most 28
|
||||
CSS pixels. A 12-pixel dead zone and diagonal hysteresis resolve only cardinal
|
||||
intentions. Drag displacement selects a monotonically bounded local cadence
|
||||
|
||||
Reference in New Issue
Block a user