Using smart phone as mouse