mouse direction detected