SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::Input::Keyboard Class Reference

#include <Keyboard.hpp>

Public Member Functions

 Keyboard ()=default
 ~Keyboard ()=default
bool Initialize ()
void Shutdown ()

Static Public Member Functions

static bool IsKeyHold (KEY_CODE key)
 True while key is held down, including the initial press frame.
static bool IsKeyPressed (KEY_CODE key)
 True on the frame key transitions from up to down.
static bool IsKeyReleased (KEY_CODE key)
 True on the frame key transitions from down to up.

Friends

class Window

Detailed Description

Static keyboard state queried by key code; Window feeds it raw key events.

Definition at line 13 of file Keyboard.hpp.

Constructor & Destructor Documentation

◆ Keyboard()

Sleak::Input::Keyboard::Keyboard ( )
default

◆ ~Keyboard()

Sleak::Input::Keyboard::~Keyboard ( )
default

Member Function Documentation

◆ Initialize()

bool Sleak::Input::Keyboard::Initialize ( )

◆ IsKeyHold()

bool Sleak::Input::Keyboard::IsKeyHold ( KEY_CODE key)
static

True while key is held down, including the initial press frame.

◆ IsKeyPressed()

bool Sleak::Input::Keyboard::IsKeyPressed ( KEY_CODE key)
static

True on the frame key transitions from up to down.

◆ IsKeyReleased()

bool Sleak::Input::Keyboard::IsKeyReleased ( KEY_CODE key)
static

True on the frame key transitions from down to up.

◆ Shutdown()

void Sleak::Input::Keyboard::Shutdown ( )

◆ Window

friend class Window
friend

Definition at line 14 of file Keyboard.hpp.