Handles player movement, camera perspective switching, and object interaction logic.
More...
#include <inputController.h>
Handles player movement, camera perspective switching, and object interaction logic.
◆ InputController()
| copakond::InputController::InputController |
( |
Camera * | cam, |
|
|
Input * | input ) |
|
inline |
◆ getLevelEditor()
| LevelEditor * copakond::InputController::getLevelEditor |
( |
| ) |
|
|
inline |
◆ onKeyboardEvent()
| void copakond::InputController::onKeyboardEvent |
( |
unsigned char | key, |
|
|
int | x, |
|
|
int | y, |
|
|
bool | isDown ) |
|
overridevirtual |
◆ onMenuEvent()
| void copakond::InputController::onMenuEvent |
( |
int | option | ) |
|
|
overridevirtual |
◆ onMouseButtonEvent()
| void copakond::InputController::onMouseButtonEvent |
( |
int | button, |
|
|
int | state, |
|
|
int | x, |
|
|
int | y ) |
|
overridevirtual |
◆ raycast()
| int copakond::InputController::raycast |
( |
int | x, |
|
|
int | y ) |
Performs stencil buffer reading at cursor position to find object ID.
- Parameters
-
| x | Screen X coordinate |
| y | Screen Y coordinate |
- Returns
- The ID of the clicked mesh.
◆ setCameraSpline()
| void copakond::InputController::setCameraSpline |
( |
Spline * | spline | ) |
|
|
inline |
Attaches the active camera to a spline for cinematic movement.
◆ setLevelEditor()
| void copakond::InputController::setLevelEditor |
( |
LevelEditor * | lev | ) |
|
|
inline |
◆ setPlayer()
| void copakond::InputController::setPlayer |
( |
RigidBody * | p | ) |
|
|
inline |
◆ update()
| void copakond::InputController::update |
( |
float | deltaTime | ) |
|
|
overridevirtual |
◆ baseSpeed
| float copakond::InputController::baseSpeed = 1.5f |
◆ mouseDragCoeff
| float copakond::InputController::mouseDragCoeff = 0.05f |
◆ shiftMultiplier
| float copakond::InputController::shiftMultiplier = 1.75f |
The documentation for this class was generated from the following files: