class
KeyboardInput
- Module
- Input
- Header
#include "Input/KeyboardInput.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
KeyboardInput() | KeyboardInput |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsKeyDown | |
bool | IsKeyPressed | 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. |
bool | IsKeyReleased | Just released this frame |
bool | IsKeyDown | |
bool | IsKeyPressed | |
bool | IsKeyReleased | |
bool | IsShiftDown | |
bool | IsControlDown | |
bool | IsAltDown | |
void | OnKeyDown | Called by InputManager |
void | OnKeyUp | |
void | Update | Call at start of frame to update prev state |
Function details
KeyboardInput
C++
KeyboardInput()IsKeyDown
C++
bool IsKeyDown(KeyCode key) constIsKeyPressed
C++
bool IsKeyPressed(KeyCode key) constPress/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) constJust released this frame
IsKeyDown
C++
bool IsKeyDown(int vkCode) constIsKeyPressed
C++
bool IsKeyPressed(int vkCode) constIsKeyReleased
C++
bool IsKeyReleased(int vkCode) constIsShiftDown
C++
bool IsShiftDown() constIsControlDown
C++
bool IsControlDown() constIsAltDown
C++
bool IsAltDown() constOnKeyDown
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