sculpto
Public Attributes | List of all members
scl::keyboard_data Struct Reference

#include <input.h>

Public Attributes

u8 Keys [256] { 0 }
 
u8 KeysOld [256] { 0 }
 
u8 KeysClick [256] { 0 }
 

Detailed Description

Definition at line 26 of file input.h.

Member Data Documentation

◆ Keys

u8 scl::keyboard_data::Keys[256] { 0 }

Keys state array getter function. Key state could be accessed from array by its VK_*** key code or letter char. Example: GetKeys()[keycodes::...] or GetKeys()['A']

Definition at line 31 of file input.h.

◆ KeysClick

u8 scl::keyboard_data::KeysClick[256] { 0 }

Keys click state array getter function. Click state is equal to true only once when user pressed down key. Key state could be accessed from array by its VK_*** key code or letter char. Example: GetKeys()[keycodes::...] or GetKeys()['A']

Definition at line 42 of file input.h.

◆ KeysOld

u8 scl::keyboard_data::KeysOld[256] { 0 }

Keys previously readed state array getter function. Key state could be accessed from array by its VK_*** key code or letter char. Example: GetKeys()[keycodes::...] or GetKeys()['A']

Definition at line 36 of file input.h.


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