The camera object to use with the controls
Freezes the FirstPersonControls object
Handles the keydown event, updating the moveDirection vector based on the key pressed.
The keyboard event object
Handles the keyup event, updating the moveDirection vector based on the key released.
The keyboard event object
Handles the mousedown event, setting a flag to indicate that the mouse is being dragged.
The mouse event object
Handles the mousemove event, updating the mouseMovement vector with the movement of the mouse.
The mouse event object
Handles the mouseup event, setting a flag to indicate that the mouse is no longer being dragged.
The mouse event object
Updates the FirstPersonControls object
The amount of time since the last update
Constructs an instance of the FirstPersonControls class.