Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
key_state.h
Go to the documentation of this file.
1#pragma once
2
9struct KeyState {
10 bool current = false;
11 bool previous = false;
12
13 void reset();
14};
Represents per-frame key transition state.
Definition key_state.h:9
bool previous
True if the key was down in the previous frame.
Definition key_state.h:11
void reset()
bool current
True if the key is down this frame.
Definition key_state.h:10