Input::Input

InputClass in Unified Engine

The InputClass in the Unified Engine is the primary point for handling user input. It aggregates functionalities for both mouse and keyboard inputs, providing a unified approach for gathering input data.

Initialization & Destruction

Initializes the input mechanisms by associating them with a window object. Also handles cleanup on destruction.

InputClass(Window* windowObj);
~InputClass();

Input Controllers

The class houses the primary controllers for both mouse and keyboard input, allowing for simplified access to user inputs.

public:
    MouseController Mouse;
    KeyboardController Keyboard;

Scroll Callback

A callback function to handle scroll inputs from the mouse.

static void scroll_callback(GLFWwindow* window, double xoffset, double yoffset);

Global Input Access

The engine provides global access to the instantiated InputClass.

extern InputClass* InputPointer;

Last updated