Clementine
Public Types | Static Public Member Functions | List of all members
clem::Keyboard Class Reference

键盘. More...

#include <Keyboard.h>

Public Types

enum  Key : uint8_t {
  A = 0x41, B, C, D,
  E, F, G, H,
  I, J, K, L,
  M, N, O, P,
  Q, R, S, T,
  U, V, W, X,
  Y, Z, Escape = 0x1B, Space = 0x20,
  Prior, Next, End, Home,
  Left, Up, Right, Down,
  Select, Print, Execute, Snapshot,
  Insert, Delete
}
 

Static Public Member Functions

enum static Key uint8_t void update ()
 
static bool getState (Key k)
 获取按键状态. More...
 
static void setState (Key k, bool s)
 设置按键状态. More...
 
static void init ()
 
static void deinit ()
 

Detailed Description

键盘.

Member Function Documentation

◆ getState()

bool clem::Keyboard::getState ( Key  k)
static

获取按键状态.

Parameters
k按键.
Returns
按键按下时返回 true.

◆ setState()

void clem::Keyboard::setState ( Key  k,
bool  s 
)
static

设置按键状态.

Parameters
k按键.
s状态, 按下为 true.

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