implemented air-mouse functionality