用于监视键盘键击情况的类。
More...
#include <kb.h>
◆ Keyboard() [1/3]
| console::Keyboard::Keyboard |
( |
| ) |
|
|
inline |
构造函数,开始监视键盘键击。
- Warning
- 在 Keyboard 的生命周期内,stdin 将处于不可用状态。
◆ ~Keyboard()
| console::Keyboard::~Keyboard |
( |
| ) |
|
|
inline |
析构函数,结束对键盘键击的监视。
- Note
- stdin 将恢复可用状态。
◆ Keyboard() [2/3]
| console::Keyboard::Keyboard |
( |
const Keyboard & | | ) |
|
|
delete |
◆ Keyboard() [3/3]
| console::Keyboard::Keyboard |
( |
Keyboard && | | ) |
|
|
delete |
◆ get()
| Key console::Keyboard::get |
( |
| ) |
|
|
inline |
试图取得当前键击的按键。
- Returns
- Key 如果没有键击,返回 Key::None,否则返回对应按键。
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ wait()
| Key console::Keyboard::wait |
( |
| ) |
|
|
inline |
等待直到键击并取得当前按键。
- Returns
- Key 返回对应按键。
The documentation for this class was generated from the following file: