Testing of hat movements for pan/tilt of camera

Added if statement to process events for camera pan and tilt