Finality Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
Input.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
Core/Core.h
>
9
#include "
KeyCodes.h
"
10
11
namespace
FINALITY
12
{
14
class
FAPI
Input
15
{
16
public
:
17
static
bool
IsKeyDown
(
KeyCode
key);
18
static
bool
IsKeyHeld
(
KeyCode
key);
19
static
bool
IsKeyUp
(
KeyCode
key);
20
21
static
void
ClearFrameStates
();
22
static
void
RecordKeyPress
(
KeyCode
key);
23
static
void
RecordKeyRelease
(
KeyCode
key);
24
25
private
:
26
static
bool
s_CurrentFrameStates[512];
27
static
bool
s_PreviousFrameStates[512];
28
};
29
}
Core.h
FAPI
#define FAPI
Definition
Core.h:22
KeyCodes.h
FINALITY::Input
Definition
Input.h:15
FINALITY::Input::IsKeyUp
static bool IsKeyUp(KeyCode key)
FINALITY::Input::IsKeyDown
static bool IsKeyDown(KeyCode key)
FINALITY::Input::RecordKeyPress
static void RecordKeyPress(KeyCode key)
FINALITY::Input::ClearFrameStates
static void ClearFrameStates()
FINALITY::Input::RecordKeyRelease
static void RecordKeyRelease(KeyCode key)
FINALITY::Input::IsKeyHeld
static bool IsKeyHeld(KeyCode key)
FINALITY
Definition
Asset.h:12
FINALITY::KeyCode
unsigned int KeyCode
Definition
KeyCodes.h:11
FinalityEngine
src
Events
Input.h
Generated by
1.18.0