pub enum Action {
KeyPress(u16),
KeyRelease(u16),
Delay(u32),
Execute(String),
Type(String),
MousePress(u16),
MouseRelease(u16),
MouseMove(i32, i32),
MouseScroll(i32),
AnalogMove {
axis_code: u16,
normalized: f32,
},
}Expand description
Different actions that can be executed by a macro
Variants§
KeyPress(u16)
Key press with optional key code
KeyRelease(u16)
Key release
Delay(u32)
Delay in milliseconds
Execute(String)
Execute a command
Type(String)
Type a string
MousePress(u16)
Mouse button press
MouseRelease(u16)
Mouse button release
MouseMove(i32, i32)
Mouse move relative
MouseScroll(i32)
Mouse scroll
AnalogMove
Analog stick movement with normalized value axis_code: 61000-61005 (ABS_X, ABS_Y, etc.) normalized: -1.0 to 1.0 (device-independent)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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