Documentation
¶
Overview ¶
Command wheelprobe live-verifies widget.WheelPicker on a touch device (#977): a drag spins the wheel and it settles with an item centred, a flick coasts, and items away from the centre shrink and fade through core.OpacityGroup on the device's real painter.
The window holds one vertical wheel of seven white squares, five visible, on a flat black background, so a screenshot gives each item's opacity directly: a square's pixel value over black is 255 times its opacity. With FadeTo 0.3 they read 1 at the centre, 0.72 one slot out and 0.44 two out.
It prints machine-greppable lines to stdout (logcat tag Bellui on Android):
wheelprobe ready scale=2.62 wheel=155,40+100x400pt selected=3 wheelprobe changed selected=5 t=4321
Drive it with adb (pixels: the ready line's points times scale). With a pitch of 80pt:
adb shell input swipe 540 1500 540 1080 1500 # 2 pitches up, slow: +2 adb shell input swipe 540 1300 540 1100 60 # a flick up: coasts further
It quits by itself after ten minutes.
Android: package with `bellui package --target android/arm64 --app-id com.trendvidia.wheelprobe` from this directory.