Raftel Engine
 
Loading...
Searching...
No Matches
Raftel::Input::KeyInfo Struct Reference

Stores information about a key's state. More...

#include <input.hpp>

Public Attributes

Keys k
 
bool up = true
 
bool down = false
 
bool this_frame = false
 
bool was_pressed_last_frame = false
 

Detailed Description

Stores information about a key's state.

Definition at line 48 of file input.hpp.

Member Data Documentation

◆ down

bool Raftel::Input::KeyInfo::down = false

Whether the key is down.

Definition at line 51 of file input.hpp.

◆ k

Keys Raftel::Input::KeyInfo::k

The key.

Definition at line 49 of file input.hpp.

◆ this_frame

bool Raftel::Input::KeyInfo::this_frame = false

Whether the key was pressed this frame.

Definition at line 52 of file input.hpp.

◆ up

bool Raftel::Input::KeyInfo::up = true

Whether the key is up.

Definition at line 50 of file input.hpp.

◆ was_pressed_last_frame

bool Raftel::Input::KeyInfo::was_pressed_last_frame = false

Whether the key was pressed in the last frame.

Definition at line 53 of file input.hpp.


The documentation for this struct was generated from the following file: