|
| EditorController (const SceneLabConfig *config, fplbase::InputSystem *input_system) |
| Initialize the controller.
|
|
void | Update () |
| Call this every frame to update the *WentDown() functions.
|
|
bool | ButtonWentDown (int button) const |
| ButtonWentDown() returns true only on the first frame the given button is being pressed. More...
|
|
bool | ButtonWentUp (int button) const |
| ButtonWentUp() returns true only on the first frame the given button has stopped being pressed. More...
|
|
bool | ButtonIsDown (int button) const |
| ButtonIsDown() returns true while the given button is being held down.
|
|
bool | ButtonIsUp (int button) const |
| ButtonIsUp() returns true while the given button is not being held down. More...
|
|
bool | KeyWentDown (fplbase::FPL_Keycode key) const |
| KeyWentDown() returns true on the first frame a given key is being pressed. More...
|
|
bool | KeyWentUp (fplbase::FPL_Keycode key) const |
| KeyWentUp() returns true on the first frame after a given key has stopped being pressed. More...
|
|
bool | KeyIsDown (fplbase::FPL_Keycode key) const |
| KeyIsDown() returns true while the given key is being held down.
|
|
bool | KeyIsUp (fplbase::FPL_Keycode key) const |
| KeyIsUp() returns true while the given key is not being held down. More...
|
|
const mathfu::vec3 & | GetFacing () const |
| Get the direction we are facing. More...
|
|
void | SetFacing (const mathfu::vec3 &facing) |
| Set the current facing to a specific value.
|
|
const mathfu::vec2 & | GetPointer () const |
| Get the on-screen pointer position. More...
|
|
mathfu::vec2 | GetPointerDelta () const |
| Get the delta in on-screen pointer position from the previous update.
|
|
void | LockMouse () |
| Lock the mouse into the middle of the screen, which will start updating facing. More...
|
|
void | UnlockMouse () |
| Stop locking the mouse to the middle of the screen; it will no longer update facing, but will update pointer location instead. More...
|
|
bool | ScreenPointToWorldRay (const GenericCamera &camera, const ViewportSettings &viewport, const mathfu::vec2 &screen_point, const mathfu::vec2i &screen_size, mathfu::vec3 *near, mathfu::vec3 *dir) const |
| Get the position of a screen point in the world, as a ray from the camera position with a direction. More...
|
|
bool | mouse_locked () const |
| Is the mouse locked? If so, moving the mouse changes our facing. More...
|
|