6 Commits
Author SHA1 Message Date
osy 0804e4d642 click: play on key down instead of key up
Code is a lot simpler as well...
2023-11-19 08:03:39 -08:00
osy d8507ee7a7 click: respect system setting to disable sound 2023-11-19 00:21:37 -08:00
osy 1275c86857 button: add spacial click sounds
Dynamically create a RealityKit Entity when a button is pressed down. Attach an
AudioPlaybackController to it and when the button is released, play the correct
click sound at the correct coordinates.

We fetch the system CAF file from either the device or from the simulator's
RuntimeRoot.
2023-11-19 00:04:22 -08:00
osy 0b48c1ae75 button: add debounce for direct touch 2023-11-18 14:42:13 -08:00
osy 54be3330fe subject: use OSAllocatedUnfairLock 2023-11-18 14:42:13 -08:00
osy 6df10e9e2e project: initial commit 2023-11-13 11:53:52 -08:00