controls
Sets up and applies mouse and keyboard controls for interacting with the camera. This variable provides event-driven logic to handle user input for panning, rotation, and zooming.
Mouse button interactions are used to configure the center of rotation and reset the view.
Mouse drag events control panning and rotation with the left and right mouse buttons respectively.
Mouse scrolling adjusts the zoom level based on the scroll direction and position.
Parameters
mouse
an instance of MouseEvents
providing data for mouse interactions, such as button presses, movement, and scrolling.
keyboard
an instance of KeyEvents
providing the framework for handling keyboard inputs, though currently unused in this implementation.