added dx and dy to input for mouse!