feat(ui): the gamepad moves the focus, presses and goes back; a held direction repeats on the clock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a4c7a756f0
commit
d2b0413c30
9 changed files with 141 additions and 1 deletions
8
examples/library/ui_gamepad_parts/Pad.xml
Normal file
8
examples/library/ui_gamepad_parts/Pad.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div class="page">
|
||||
<each in="{range(8)}" as="r"><button on-click="set last = r">{r}</button></each>
|
||||
<input type="range" min="{0}" max="{10}" value="{vol}" on-change="set vol = event.value"/>
|
||||
<select value="{q}" on-change="set q = event.value"><option>a</option><option>b</option><option>c</option></select>
|
||||
<button on-click="set open = true">more</button>
|
||||
<if test="{open}"><div popover on-close="set open = false"><button>x</button></div></if>
|
||||
<p>last {last} vol {vol} q {q} open {open}</p>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue