Voltray Engine Docs
Loading...
Searching...
No Matches
Input Class Reference

Handles keyboard input for the application using GLFW. More...

#include <Input.h>

Static Public Member Functions

static void Init (GLFWwindow *window)
 
static void Shutdown ()
 
static void Update ()
 
static bool IsKeyPressed (int key)
 
static bool IsKeyReleased (int key)
 
static bool IsMouseButtonPressed (int button)
 
static double GetMouseDeltaX ()
 
static double GetMouseDeltaY ()
 
static double GetScrollDeltaY ()
 
static void ResetMouseDelta ()
 
static void HideCursor ()
 
static void ShowCursor ()
 

Static Public Attributes

static GLFWwindow * s_Window = nullptr
 

Detailed Description

Handles keyboard input for the application using GLFW.

This class provides static methods to initialize input handling, update input states, and query the state of specific keys.

Usage:

Member Function Documentation

◆ GetMouseDeltaX()

double Input::GetMouseDeltaX ( )
static

◆ GetMouseDeltaY()

double Input::GetMouseDeltaY ( )
static

◆ GetScrollDeltaY()

double Input::GetScrollDeltaY ( )
static

◆ HideCursor()

void Input::HideCursor ( )
static

◆ Init()

void Input::Init ( GLFWwindow *  window)
static

◆ IsKeyPressed()

bool Input::IsKeyPressed ( int  key)
static

◆ IsKeyReleased()

bool Input::IsKeyReleased ( int  key)
static

◆ IsMouseButtonPressed()

bool Input::IsMouseButtonPressed ( int  button)
static

◆ ResetMouseDelta()

void Input::ResetMouseDelta ( )
static

◆ ShowCursor()

void Input::ShowCursor ( )
static

◆ Shutdown()

void Input::Shutdown ( )
static

◆ Update()

void Input::Update ( )
static

Member Data Documentation

◆ s_Window

GLFWwindow * Input::s_Window = nullptr
static

The documentation for this class was generated from the following files: