1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Keyboard detection and control.
use crate::;
/// Returns `true` once when `key` changes from up to down.
/// Returns `true` while `key` is held down.
/// Returns `true` once when `key` changes from down to up.
/// Holds `key` down.
/// Returns whether Windows accepted the input.
/// Releases `key`.
/// Returns whether Windows accepted the input.
/// Presses and releases `key`.
/// Returns whether Windows accepted both input events.
/// Types arbitrary Unicode text into the focused application.
/// Returns whether Windows accepted every generated input event.