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