Finality Engine
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
11namespace 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}
#define FAPI
Definition Core.h:22
static bool IsKeyUp(KeyCode key)
static bool IsKeyDown(KeyCode key)
static void RecordKeyPress(KeyCode key)
static void ClearFrameStates()
static void RecordKeyRelease(KeyCode key)
static bool IsKeyHeld(KeyCode key)
unsigned int KeyCode
Definition KeyCodes.h:11