I'm looking at creating a Wear OS app for <https://github.com/joreilly/chip-8>. What would be appro...
j
I'm looking at creating a Wear OS app for https://github.com/joreilly/chip-8. What would be appropriate input events to use for moving left/right in example like this?
👍 1
a
Rotary input. I would also include pointer input and move based on which half of the screen the user taps
j
I'm using detectTapGestures onPress right now to fire
a
You'll be quite limited 😅 perhaps fire could be reserved in the top portion of the screen?
Or could experiment with gestures like fling up to fire.
j
or maybe use onDoubleTap for fire
a
Yep. One thing that was annoying for double tap to fire if you're using onPress to move is the slight false trigger; you'd need logic to wait for the double tap to elapse before detecting onPress
j
ok, thanks, I'll experiment with a few approaches
the other option is to go back to showing buttons on screen as is case with other clients in this project
a
Yep, it's common on phone based emulators too - semi transparent buttons overlaid on the screen
y
Awesome
I would consider RSB/Bezel to be almost guaranteed on modern watches. At least I think recent devices all have.
If you sre generating discrete move events like a button press, you might want to use the volume modifier from horologist
j
Thanks, will take a look at that
l
Accelerometer + a tap to reset horizon to current orientation could work well.