Expand description
High-level input handling.
§Controllers
Controllers are used to orient objects in the scene using input devices.
Any Object
can be the target of a controller, including cameras.
§Orbital
- Uses mouse movement to rotate the object around its target.
- Uses the mouse scroll wheel to move the object closer to or further from its target.
§First-person
- Uses the W and S keys to move forward or backward.
- Uses the A and D keys to strafe left or right.
- Uses mouse movement to rotate the object when the right mouse button is held down.
Modules§
- axis
- Axes for handling input.
- first_
person - First person controls.
- orbit
- Mouse orbit controls.
Structs§
- First
Person - Controls for first person camera.
- Input
- Controls user and system input from keyboard, mouse and system clock.
- Orbit
- Simple controls for Orbital Camera.
- Timer
- Timer can be used to find the time difference between the moment of timer creation and the
moment of calling
elapsed
.
Enums§
- Button
- Keyboard or mouse button.
- Key
- Symbolic name for a keyboard key.
- Mouse
Button - Describes a button of a mouse controller.
Constants§
- AXIS_
DOWN_ UP - Axis for up and down arrow keys.
- AXIS_
LEFT_ RIGHT - Axis for left and right arrow keys.
- KEY_
ESCAPE Escape
keyboard button.- KEY_
SPACE Space
keyboard button.- MOUSE_
LEFT - Left mouse button.
- MOUSE_
RIGHT - Right mouse button.