How to use iPhone/Android/windows phone as mouse

How to use iPhone/Android/windows phone as mouse