Does Compose provide an API to check if there is currently a pointer input active (e.g. touchpad, mouse)?
Venthorus
07/31/2023, 7:24 PM
I have an UI with a Pager in it and want to replace it with a different UI and two arrow buttons (to jump between items) as swiping between pages horizontally does not feel intuitive with a mouse.
Venthorus
07/31/2023, 7:25 PM
At first I wanted to do the distinction via expect/actual for Compose for Desktop, however that cannot be the proper solution as Windows devices can also have a touch screen while Android devices can also have a pointer input device attached.
m
Michael Paus
08/01/2023, 7:48 AM
For this case I have a switch in the settings menu of my app where the user can select what his primary input device is.