pub enum Button {
Show 127 variants
LeftButton,
RightButton,
MiddleButton,
SideButton1,
SideButton2,
Tilde,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
Key0,
Minus,
Equal,
Backspace,
Tab,
Q,
W,
E,
R,
T,
Y,
U,
I,
O,
P,
OpenSquareBracket,
CloseSquareBracket,
CapsLock,
A,
S,
D,
F,
G,
H,
J,
K,
L,
SemiColon,
SingleQuote,
Enter,
LShift,
Z,
X,
C,
V,
B,
N,
M,
Comma,
Dot,
Slash,
RShift,
LCtrl,
LSuper,
LAlt,
Space,
RAlt,
RSuper,
Application,
RCtrl,
Insert,
Delete,
LeftArrow,
Home,
End,
UpArrow,
DownArrow,
PageUp,
PageDown,
RightArrow,
Numpad1,
Numpad2,
Numpad3,
Numpad4,
Numpad5,
Numpad6,
Numpad7,
Numpad8,
Numpad9,
Numpad0,
NumpadDot,
NumpadSlash,
NumpadAsterisk,
NumpadMinus,
NumpadPlus,
Esc,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
PrintScreen,
VolumeMute,
VolumeDown,
VolumeUp,
MediaNext,
MediaPrevious,
MediaStop,
MediaPlayPause,
Shift,
Ctrl,
Alt,
Super,
}
Expand description
Keyboard or mouse buttons.
Variants§
LeftButton
RightButton
MiddleButton
SideButton1
SideButton2
Tilde
Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
Key0
Minus
Equal
Backspace
Tab
Q
W
E
R
T
Y
U
I
O
P
OpenSquareBracket
CloseSquareBracket
CapsLock
A
S
D
F
G
H
J
K
L
SemiColon
SingleQuote
Enter
LShift
Z
X
C
V
B
N
M
Comma
Dot
Slash
RShift
LCtrl
LSuper
LAlt
Space
RAlt
RSuper
Application
RCtrl
Insert
Delete
LeftArrow
Home
End
UpArrow
DownArrow
PageUp
PageDown
RightArrow
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
Numpad0
NumpadDot
NumpadSlash
NumpadAsterisk
NumpadMinus
NumpadPlus
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
PrintScreen
VolumeMute
VolumeDown
VolumeUp
MediaNext
MediaPrevious
MediaStop
MediaPlayPause
Shift
Ctrl
Alt
Super
Implementations§
Source§impl Button
impl Button
Sourcepub fn press_recursive(self)
pub fn press_recursive(self)
Simulates a button presses. Events generated by this method can be hooked.
Sourcepub fn release_recursive(self)
pub fn release_recursive(self)
Simulates a button releases. Events generated by this method can be hooked.
Sourcepub fn click_recursive(self)
pub fn click_recursive(self)
Simulates a button click. Events generated by this method can be hooked.
Sourcepub fn is_pressed(self) -> bool
pub fn is_pressed(self) -> bool
Returns true
if the button is pressed.
Sourcepub fn is_released(self) -> bool
pub fn is_released(self) -> bool
Returns true
if the button is released.
Trait Implementations§
impl Copy for Button
impl Eq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more