Zen
0.3.0
Loading...
Searching...
No Matches
ZEN_InputSystem.h
1
#pragma once
2
3
#include <zen/zen_pch.h>
4
5
namespace
Zen {
6
class
InputSystem
{
7
public
:
8
void
begin();
9
void
end();
10
void
reset();
11
12
bool
held(
int
scancode)
const
;
13
bool
pressed(
int
scancode)
const
;
14
bool
released(
int
scancode)
const
;
15
16
private
:
17
const
bool
*m_currKeyboard =
nullptr
;
18
std::array<uint8_t, SDL_SCANCODE_COUNT> m_prev{};
19
};
20
}
// namespace Zen
Zen::InputSystem
Definition
ZEN_InputSystem.h:6
engine
zen
inputs
ZEN_InputSystem.h
Generated by
1.14.0