ngfx::InputListener

Inherited by ngfx::BaseApplication, ngfx::Camera

Public Functions

Name
virtual void onKey(KeyCode code, InputAction action)
virtual void onScroll(double xoffset, double yoffset)
virtual void onCursorPos(double x, double y)
virtual void onMouseButton(MouseButton button, InputAction action)

Public Functions Documentation

function onKey

inline virtual void onKey(
    KeyCode code,
    InputAction action
)

Reimplemented by: ngfx::Camera::onKey

function onScroll

inline virtual void onScroll(
    double xoffset,
    double yoffset
)

Reimplemented by: ngfx::Camera::onScroll

function onCursorPos

inline virtual void onCursorPos(
    double x,
    double y
)

Reimplemented by: ngfx::Camera::onCursorPos

function onMouseButton

inline virtual void onMouseButton(
    MouseButton button,
    InputAction action
)

Reimplemented by: ngfx::Camera::onMouseButton


Updated on 3 April 2021 at 20:21:51 PDT