Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/enigo-rs/enigo
/ functions
Functions
223 in github.com/enigo-rs/enigo
⨍
Functions
223
◇
Types & classes
45
↓ 25 callers
Function
ws
A combinator that takes a parser `inner` and produces a parser that also consumes both leading and trailing whitespace, returning the output of `inner
src/linux/keymap2/parse_keymap.rs:507
↓ 21 callers
Method
key
(&mut self, keycode: Keycode, direction: Direction)
src/linux/keymap.rs:262
↓ 19 callers
Method
special_keys
(&mut self, code: isize, direction: Direction)
src/macos/macos_impl.rs:587
↓ 16 callers
Method
map
Add the Keysym to the keymap This does not apply the changes
src/linux/keymap.rs:165
↓ 15 callers
Method
key
(&mut self, key: Key, direction: Direction)
tests/common/enigo_test.rs:101
↓ 10 callers
Method
flush
Flush the Wayland queue
src/linux/wayland.rs:266
↓ 10 callers
Function
get_delay
Add a longer delay if it is not ran in the CI so the user can observe the mouse moves but don't waste time in the CI
src/tests/mod.rs:17
↓ 10 callers
Method
update_wait_time
Save the current Instant and calculate the remaining waiting time We assume we need to wait for 20 ms for each event to make sure the OS has time to h
src/macos/macos_impl.rs:920
↓ 8 callers
Method
update
(&mut self, libei_name: &str)
src/linux/libei.rs:215
↓ 7 callers
Method
read_message
(&mut self)
tests/common/enigo_test.rs:56
↓ 6 callers
Function
keybd_event
( flags: KEYBD_EVENT_FLAGS, vk: VIRTUAL_KEY, scan: ScanCode, dw_extra_info: usize, )
src/win/win_impl.rs:86
↓ 6 callers
Method
move_mouse
(&mut self, x: i32, y: i32, coordinate: Coordinate)
tests/common/enigo_test.rs:147
↓ 6 callers
Function
send_input
(input: &[INPUT])
src/win/win_impl.rs:38
↓ 6 callers
Method
text
(&mut self, text: &str)
src/lib.rs:235
↓ 5 callers
Method
get_time
Get the duration since the Keymap was created
src/linux/wayland.rs:159
↓ 5 callers
Function
mouse_event
( flags: MOUSE_EVENT_FLAGS, data: i32, dx: i32, dy: i32, dw_extra_info: usize, )
src/win/win_impl.rs:63
↓ 5 callers
Method
scroll
(&mut self, _: i32, _: crate::Axis)
src/platform.rs:21
↓ 4 callers
Method
button
(&mut self, _: crate::Button, _: crate::Direction)
src/platform.rs:13
↓ 4 callers
Function
is_alive
(proxy: &P)
src/linux/wayland.rs:1010
↓ 4 callers
Method
move_mouse
(&mut self, x: i32, y: i32, coordinate: Coordinate)
src/linux/mod.rs:195
↓ 4 callers
Method
raw
(&mut self, keycode: u16, direction: Direction)
src/linux/x11rb.rs:269
↓ 4 callers
Method
scroll
Sends a scroll event to the X11 server via `XTest` extension
src/win/win_impl.rs:218
↓ 4 callers
Method
scroll
(&mut self, length: i32, axis: Axis)
src/macos/macos_impl.rs:235
↓ 4 callers
Method
scroll
(&mut self, length: i32, axis: Axis)
src/linux/wayland.rs:967
↓ 4 callers
Method
scroll
(&mut self, length: i32, axis: Axis)
src/linux/libei.rs:707
↓ 4 callers
Function
test_mouse_move
( enigo: &mut Enigo, test_cases: Vec<Vec<((i32, i32), (i32, i32))>>, coordinate: crate::Coordinate
src/tests/mouse.rs:12
↓ 4 callers
Method
text
Enter the whole text string instead of entering individual keys This is much faster if you type longer text at the cost of keyboard shortcuts not gett
src/win/win_impl.rs:276
↓ 3 callers
Method
device_id
Get the device id of the first device that is found which has the same usage as the input parameter
src/linux/x11rb.rs:195
↓ 3 callers
Method
main_display
(&self)
src/linux/mod.rs:259
↓ 3 callers
Method
move_mouse
(&mut self, _: i32, _: i32, _: crate::Coordinate)
src/platform.rs:17
↓ 3 callers
Method
queue_key
( &mut self, input_queue: &mut Vec<INPUT>, key: Key, direction: Direction,
src/win/win_impl.rs:428
↓ 3 callers
Method
raw
(&mut self, keycode: u16, direction: Direction)
src/linux/mod.rs:367
↓ 3 callers
Method
update_key
Update the state and return the new bitflags for the modifiers and the effective layout if they changed. If they remained the same, None is returned
src/linux/keymap2/mod.rs:160
↓ 2 callers
Method
add_event_flag
Adds or removes `KeyFlags` as needed by the keycode This function can never get called with `Direction::Click`!
src/macos/macos_impl.rs:664
↓ 2 callers
Method
bind_key
Map the keysym to the given keycode Only use keycodes that are not used, otherwise the existing mapping is overwritten If the keycode is mapped to the
src/linux/keymap.rs:288
↓ 2 callers
Method
button
(&mut self, button: Button, direction: Direction)
src/linux/mod.rs:163
↓ 2 callers
Method
chunks
Fn to create an iterator over sub slices of a str that have the specified length
src/macos/macos_impl.rs:267
↓ 2 callers
Function
is_ci
Check if the code is running in the CI
src/tests/mod.rs:11
↓ 2 callers
Method
key
(&mut self, key: Key, direction: Direction)
src/macos/macos_impl.rs:331
↓ 2 callers
Method
key
(&mut self, key: Key, direction: Direction)
src/linux/libei.rs:501
↓ 2 callers
Method
key_to_keycode
(&mut self, c: &C, key: Key)
src/linux/keymap.rs:131
↓ 2 callers
Function
keycode_to_string
(keycode: u16, modifier: u32)
src/macos/macos_impl.rs:1068
↓ 2 callers
Method
location
(&self)
src/macos/macos_impl.rs:254
↓ 2 callers
Method
location
Edge cases don't work (mouse is at the left most border and can't move one to the left)
tests/common/enigo_test.rs:218
↓ 2 callers
Method
map_key
(&mut self, key: Key)
src/linux/keymap2/mod.rs:256
↓ 2 callers
Method
nth_button_press
On macOS, we have to determine ourselves if it was a double click of a mouse button. The Enigo struct stores the information needed to do so. This fun
src/macos/macos_impl.rs:571
↓ 2 callers
Function
parse_section
(input: &'a str, struct_tag: &str)
src/linux/keymap2/parse_keymap.rs:500
↓ 2 callers
Function
press_a
(from: &'static str)
examples/sync.rs:19
↓ 2 callers
Method
queue_char
(&mut self, input_queue: &mut Vec<INPUT>, character: char, buffer: &mut [u16; 2])
src/win/win_impl.rs:475
↓ 2 callers
Method
raw
(&mut self, _: u16, _: crate::Direction)
src/platform.rs:43
↓ 2 callers
Method
raw
(&mut self, keycode: u16, direction: Direction)
src/macos/macos_impl.rs:442
↓ 2 callers
Method
raw
(&mut self, keycode: u16, direction: Direction)
src/linux/libei.rs:542
↓ 2 callers
Method
scroll_unit
( &mut self, length: i32, scroll_event_unit: CGScrollEventUnit, axis: Axis,
src/macos/macos_impl.rs:883
↓ 2 callers
Method
send_key_event
Press/Release a keycode # Errors TODO
src/linux/wayland.rs:169
↓ 2 callers
Method
send_message
(&mut self, msg: &str)
tests/common/enigo_test.rs:46
↓ 2 callers
Method
send_modifier_event
Sends a modifier event with the updated bitflag of the modifiers to the compositor
src/linux/wayland.rs:198
↓ 2 callers
Method
update_keymap
Apply the current keymap # Errors TODO
src/linux/wayland.rs:237
↓ 1 callers
Method
bind_key
(&self, keycode: Keycode, keysym: Keysym)
src/linux/x11rb.rs:237
↓ 1 callers
Method
button
(&mut self, button: Button, direction: Direction)
src/linux/xdo.rs:241
↓ 1 callers
Method
button
(&mut self, button: Button, direction: Direction)
src/linux/x11rb.rs:337
↓ 1 callers
Method
check_available_protocols
(&self)
src/linux/wayland.rs:139
↓ 1 callers
Method
copy_maps_for_keycodes
( &mut self, other_keymap: &Self, keycodes_to_copy: &HashSet<Keycode>, )
src/linux/keymap2/parse_keymap.rs:106
↓ 1 callers
Method
execute
Execute the action associated with the token. A [`Token::Text`] will enter text, a [`Token::Scroll`] will scroll and so forth. Have a look at the docu
src/agent.rs:83
↓ 1 callers
Method
fast_text
(&mut self, _: &str)
src/platform.rs:35
↓ 1 callers
Method
format_file_size
(&self)
src/linux/keymap2/mod.rs:220
↓ 1 callers
Function
get_layoutdependent_keycode
(string: &str)
src/macos/macos_impl.rs:1034
↓ 1 callers
Function
has_permission
Check if the currently running application has the permissions to simulate input Returns true if the application has the permission and is allowed to
src/macos/macos_impl.rs:1143
↓ 1 callers
Method
held
Returns a list of all currently pressed keys
src/win/win_impl.rs:508
↓ 1 callers
Method
held
Returns a list of all currently pressed keys
src/macos/macos_impl.rs:556
↓ 1 callers
Method
held
Returns a list of all currently pressed keys
src/linux/mod.rs:157
↓ 1 callers
Method
interface
(&self)
src/linux/libei.rs:66
↓ 1 callers
Method
key
Sends a key event to the X11 server via `XTest` extension
src/win/win_impl.rs:301
↓ 1 callers
Method
key
(&mut self, key: Key, direction: Direction)
src/linux/wayland.rs:795
↓ 1 callers
Method
key
(&mut self, key: Key, direction: Direction)
src/linux/mod.rs:323
↓ 1 callers
Method
key
(&mut self, key: Key, direction: Direction)
src/linux/x11rb.rs:255
↓ 1 callers
Function
key_to_keycode
(keymap: &xkb::Keymap, key: Key)
src/linux/libei.rs:775
↓ 1 callers
Method
keysym_to_keycode
(&self, keysym: Keysym)
src/linux/keymap.rs:98
↓ 1 callers
Method
location
(&self)
src/platform.rs:29
↓ 1 callers
Method
location
(&self)
src/win/win_impl.rs:255
↓ 1 callers
Method
location
(&self)
src/linux/mod.rs:279
↓ 1 callers
Function
main
()
examples/key.rs:8
↓ 1 callers
Method
main_display
(&self)
src/platform.rs:25
↓ 1 callers
Method
main_display
(&self)
src/win/win_impl.rs:240
↓ 1 callers
Method
main_display
(&self)
src/linux/wayland.rs:988
↓ 1 callers
Method
main_display
(&self)
tests/common/enigo_test.rs:201
↓ 1 callers
Method
make_room
Check if there are still unused keycodes available. If there aren't, make some room by freeing the already mapped keycodes. Returns true, if keys were
src/linux/keymap.rs:240
↓ 1 callers
Function
mouse_position
()
tests/common/enigo_test.rs:240
↓ 1 callers
Function
mousebutton
(button: Button)
src/linux/xdo.rs:73
↓ 1 callers
Method
parse
(input: &str)
src/linux/keymap2/parse_keymap.rs:200
↓ 1 callers
Method
pending_delays
(&self)
src/linux/keymap.rs:158
↓ 1 callers
Method
raw
(&mut self, scan: u16, direction: Direction)
src/win/win_impl.rs:327
↓ 1 callers
Method
raw
(&mut self, keycode: u16, direction: Direction)
src/linux/wayland.rs:826
↓ 1 callers
Function
rdev_main_display
()
tests/common/enigo_test.rs:234
↓ 1 callers
Function
set_dpi_awareness
Sets the current process to a specified dots per inch (dpi) awareness context [see official documentation](https://learn.microsoft.com/en-us/windows/w
src/win/win_impl.rs:560
↓ 1 callers
Method
smooth_scroll
(&mut self, length: i32, axis: Axis)
src/lib.rs:363
↓ 1 callers
Method
unmap
Remove the Keysym from the keymap This does not apply the changes
src/linux/keymap.rs:188
↓ 1 callers
Method
unmap_everything
(&mut self)
src/linux/keymap2/mod.rs:266
↓ 1 callers
Method
update
(&mut self, format: KeymapFormat, fd: OwnedFd, size: u32)
src/linux/keymap2/mod.rs:114
↓ 1 callers
Method
update_delays
(&mut self, keycode: Keycode)
src/linux/keymap.rs:209
↓ 1 callers
Method
update_modifiers
( &mut self, depressed_mods: ModMask, latched_mods: ModMask, locked_mods: ModM
src/linux/keymap2/mod.rs:201
next →
1–100 of 223, ranked by callers