Does Compose provide an API to check if there is c...
# compose
v
Does Compose provide an API to check if there is currently a pointer input active (e.g. touchpad, mouse)?
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.
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
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.