class

KeyboardInput

Module
Input
Header
#include "Input/KeyboardInput.h"
Namespace
Mowo

Constructors

SignatureNameDescription
KeyboardInput()KeyboardInput

Public functions

ReturnsNameDescription
boolIsKeyDown
boolIsKeyPressedPress/release edges are sticky per frame: a key that went down AND back up between two Update() calls still reports both edges that frame.
boolIsKeyReleasedJust released this frame
boolIsKeyDown
boolIsKeyPressed
boolIsKeyReleased
boolIsShiftDown
boolIsControlDown
boolIsAltDown
voidOnKeyDownCalled by InputManager
voidOnKeyUp
voidUpdateCall at start of frame to update prev state

Function details

KeyboardInput

C++
KeyboardInput()

IsKeyDown

C++
bool IsKeyDown(KeyCode key) const

IsKeyPressed

C++
bool IsKeyPressed(KeyCode key) const

Press/release edges are sticky per frame: a key that went down AND back up between two Update() calls still reports both edges that frame. A level comparison of current vs previous state cannot see such a tap.

IsKeyReleased

C++
bool IsKeyReleased(KeyCode key) const

Just released this frame

IsKeyDown

C++
bool IsKeyDown(int vkCode) const

IsKeyPressed

C++
bool IsKeyPressed(int vkCode) const

IsKeyReleased

C++
bool IsKeyReleased(int vkCode) const

IsShiftDown

C++
bool IsShiftDown() const

IsControlDown

C++
bool IsControlDown() const

IsAltDown

C++
bool IsAltDown() const

OnKeyDown

C++
void OnKeyDown(int vkCode)

Called by InputManager

OnKeyUp

C++
void OnKeyUp(int vkCode)

Update

C++
void Update()

Call at start of frame to update prev state

Generated from Input/KeyboardInput.h via input.json · Nov 2, 2026Version 1.0.0