How to find the user is using stylus or mouse

I have to make my application to work both in the mouse and with the stylus how to find what the user is currently using mouse or the stylus

There is no built-in way to distinguish this. Occasionally when we need to do so, we will monitor the motion of both devices each frame to determine which is more likely in use.

1 Like

Thanks for the reply @Alex