Enum hookmap_core::button::Button
source · [−]pub enum Button {
Show 113 variants
LeftButton,
RightButton,
MiddleButton,
SideButton1,
SideButton2,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
Key0,
Minus,
Backspace,
Tab,
Q,
W,
E,
R,
T,
Y,
U,
I,
O,
P,
A,
S,
D,
F,
G,
H,
J,
K,
L,
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,
Shift,
Ctrl,
Alt,
Super,
}
Expand description
Keyboard or mouse buttons.
Variants
LeftButton
RightButton
MiddleButton
SideButton1
SideButton2
Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
Key0
Minus
Backspace
Tab
Q
W
E
R
T
Y
U
I
O
P
A
S
D
F
G
H
J
K
L
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
Shift
Ctrl
Alt
Super
Implementations
sourceimpl Button
impl Button
pub const VARIANT_COUNT: usize = 113usize
sourceimpl Button
impl Button
pub fn kind(&self) -> ButtonKind
sourceimpl 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 StructuralEq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more