TinyLib 0.1.1
Loading...
Searching...
No Matches
tl::Key Class Reference

#include <Key.h>

Public Types

enum  {
  Space = VK_SPACE , A = 0x41 , B = 0x42 , C = 0x43 ,
  D = 0x44 , E = 0x45 , F = 0x46 , G = 0x47 ,
  H = 0x48 , I = 0x49 , J = 0x4A , K = 0x4B ,
  L = 0x4C , M = 0x4D , N = 0x4E , O = 0x4F ,
  P = 0x50 , Q = 0x51 , R = 0x52 , S = 0x53 ,
  T = 0x54 , U = 0x55 , V = 0x56 , W = 0x57 ,
  X = 0x58 , Y = 0x59 , Z = 0x5A , Num0 = 0x30 ,
  Num1 = 0x31 , Num2 = 0x32 , Num3 = 0x33 , Num4 = 0x34 ,
  LShift = VK_LSHIFT , RShift = VK_RSHIFT , LControl = VK_LCONTROL , RControl = VK_RCONTROL ,
  LAlt = VK_LMENU , RAlt = VK_RMENU , Up = VK_UP , Down = VK_DOWN ,
  Left = VK_LEFT , Right = VK_RIGHT
}
 Readable version for every standard keyboard key. More...
 

Static Public Member Functions

static bit isHeld (u8 key)
 Check if this key is currently down.
 

Detailed Description

Definition at line 8 of file Key.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Readable version for every standard keyboard key.

Enumerator
Space 
Num0 
Num1 
Num2 
Num3 
Num4 
LShift 
RShift 
LControl 
RControl 
LAlt 
RAlt 
Up 
Down 
Left 
Right 

Definition at line 16 of file Key.h.

Member Function Documentation

◆ isHeld()

bit tl::Key::isHeld ( u8 key)
static

Check if this key is currently down.

Parameters
keyWhich key to check, use enum tl::Key.
Returns
True if this key is currently down.

Definition at line 9 of file Key.cpp.


The documentation for this class was generated from the following files: