Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TyberiusPrime/KeyToKey
/ functions
Functions
160 in github.com/TyberiusPrime/KeyToKey
⨍
Functions
160
◇
Types & classes
53
↓ 191 callers
Method
handle_keys
handle an update to the event stream This returns OK(()) if all keys are handled by the handlers and an Err(()) otherwise. that way the down stream c
src/lib.rs:147
↓ 136 callers
Function
check_output
(keyboard: &Keyboard<KeyOutCatcher>, should: &[&[KeyCode]])
src/test_helpers.rs:70
↓ 127 callers
Method
to_u32
(self)
src/key_codes.rs:216
↓ 121 callers
Method
clear
for testing, clear the catcher of everything
src/test_helpers.rs:27
↓ 117 callers
Method
add_handler
add a handler, return a HandlerID which you may use with keyboard.output.state().enable_handler / disable_handler / toggle_handler / is_handler_enable
src/lib.rs:125
↓ 104 callers
Method
add_keypress
add a KeyPress event
src/lib.rs:193
↓ 89 callers
Method
add_keyrelease
add a KeyRelease event
src/lib.rs:206
↓ 82 callers
Method
state
(&mut self)
src/test_helpers.rs:33
↓ 71 callers
Method
pc
(&mut self, key: impl AcceptsKeycode, should: &[&[KeyCode]])
src/test_helpers.rs:185
↓ 67 callers
Method
rc
(&mut self, key: impl AcceptsKeycode, should: &[&[KeyCode]])
src/test_helpers.rs:191
↓ 34 callers
Method
send_keys
(&mut self, keys: &[KeyCode])
src/test_helpers.rs:49
↓ 29 callers
Method
enable_handler
(&mut self, no: HandlerID)
src/lib.rs:60
↓ 21 callers
Method
set_modifier
(&mut self, modifier: Modifier, value: bool)
src/lib.rs:55
↓ 16 callers
Function
iter_unhandled_mut
( events: &mut Vec<(Event, EventStatus)>, )
src/key_stream.rs:38
↓ 16 callers
Method
send_empty
(&mut self)
src/test_helpers.rs:65
↓ 9 callers
Method
disable_handler
(&mut self, no: HandlerID)
src/lib.rs:64
↓ 9 callers
Method
on_deactivate
(&mut self, _output: &mut dyn USBKeyOut)
src/premade.rs:19
↓ 8 callers
Function
nibble_to_keycode
(nibble: u8)
src/handlers/debug_handlers.rs:10
↓ 7 callers
Method
modifier
(&self, modifier: Modifier)
src/lib.rs:51
↓ 7 callers
Method
send_string
send a utf-8 string to the host all characters are converted into unicode input!
src/lib.rs:383
↓ 6 callers
Method
on_trigger
(&mut self, output: &mut dyn USBKeyOut)
src/handlers/mod.rs:64
↓ 6 callers
Method
register_key
(&mut self, key: KeyCode)
src/test_helpers.rs:52
↓ 6 callers
Method
to_u8
(self)
src/key_codes.rs:211
↓ 5 callers
Function
one_shot_shift
make the shift keys behave as a OneShot hint: use before space cadet
src/premade.rs:136
↓ 4 callers
Method
on_activate
(&mut self, output: &mut dyn USBKeyOut)
src/premade.rs:16
↓ 3 callers
Method
add_timeout
(&mut self, ms_since_last: u16)
src/lib.rs:218
↓ 3 callers
Function
dvorak
A layer that maps qwerty to dvorak. Don't forget to enable it, layers are off by default
src/premade.rs:40
↓ 3 callers
Function
hex_digit_to_keycode
transform hex digits to USB keycodes used by the unicode senders
src/lib.rs:250
↓ 2 callers
Method
debug
(&mut self, s: &str)
src/test_helpers.rs:42
↓ 2 callers
Method
do_abort
(&mut self, output: &mut dyn USBKeyOut)
src/premade.rs:301
↓ 2 callers
Function
hex_digit_to_keycode_dvorak
(digit: char)
src/lib.rs:273
↓ 2 callers
Method
is_private_keycode
(self)
src/key_codes.rs:391
↓ 2 callers
Method
is_usb_keycode
(self)
src/key_codes.rs:388
↓ 2 callers
Method
on_tapdance
( &mut self, _trigger: u32, output: &mut impl USBKeyOut, tap_count: u8, tap_end: TapDanceEnd)
src/handlers/tapdance.rs:100
↓ 2 callers
Method
on_trigger
(&mut self, output: &mut dyn USBKeyOut)
src/handlers/oneshot.rs:390
↓ 2 callers
Method
on_trigger
(&mut self, output: &mut dyn USBKeyOut)
src/handlers/longtap.rs:87
↓ 2 callers
Function
one_shot_handler
Toggle a handler (layer) based on OneShot behaviour
src/premade.rs:199
↓ 2 callers
Method
send_unicode
(&mut self, c: char)
src/lib.rs:317
↓ 2 callers
Method
set_abort_status
(&mut self, handler_id: HandlerID, enabled: bool)
src/premade.rs:297
↓ 2 callers
Method
should_autoshift
(&self, keycode: u32)
src/handlers/autoshift.rs:27
↓ 2 callers
Method
tc
(&mut self, ms_since_last: u16, should: &[&[KeyCode]])
src/test_helpers.rs:197
↓ 2 callers
Method
toggle_handler
(&mut self, no: HandlerID)
src/lib.rs:72
↓ 1 callers
Method
_aborted
(&self)
src/lib.rs:93
↓ 1 callers
Method
_clear_abort
(&mut self)
src/lib.rs:89
↓ 1 callers
Method
abort_and_clear_events
tell the Keyboard to reset handlers to their default state, clear clear all remaining events - unhandled or not reset all modifiers to default
src/lib.rs:85
↓ 1 callers
Method
default_enabled
(&self)
src/handlers/layer.rs:169
↓ 1 callers
Method
future_handler_id
predict the next or further out hander_ids returned by add_handler Needed to add space cadets before the layers they toggle.
src/lib.rs:136
↓ 1 callers
Method
is_modifier
needed to build USB reports
src/key_codes.rs:200
↓ 1 callers
Function
one_shot_alt
make the alt keys behave as a OneShot hint: use before space cadet
src/premade.rs:169
↓ 1 callers
Function
one_shot_ctrl
make the ctrl keys behave as a OneShot hint: use before space cadet
src/premade.rs:153
↓ 1 callers
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/premade.rs:240
↓ 1 callers
Method
ro_state
(&self)
src/test_helpers.rs:37
↓ 1 callers
Method
send_registered
(&mut self)
src/test_helpers.rs:57
↓ 1 callers
Method
set_handler
(&mut self, no: HandlerID, enabled: bool)
src/lib.rs:68
↓ 1 callers
Function
space_cadet_handler
A space cadet (pass through on tap, on/off on pressed+other keys) that turns a handler on/off. Note that this needs to be before the handler it toggl
src/premade.rs:227
↓ 1 callers
Function
toggle_handler
Toggles a handler on and off when a key is pressed
src/premade.rs:29
↓ 1 callers
Function
transform_u32_to_keycodes
(x: u32)
src/handlers/debug_handlers.rs:33
Method
as_modifier_bit
needed to build USB reports
src/key_codes.rs:204
Function
ascii_to_keycode
(c: char, ascii_offset: u8, keycode_offset: KeyCode)
src/lib.rs:405
Method
bootloader
(&mut self)
src/test_helpers.rs:47
Method
clear_unhandled
throw away unhandled key events
src/lib.rs:188
Method
default
()
src/lib.rs:244
Method
default_enabled
(&self)
src/handlers/rewrite_layer.rs:56
Method
default_enabled
whether this handler is enabled after add_handlers (true for most, false for Layers)
src/handlers/mod.rs:40
Method
do_send_later
(&mut self)
src/test_helpers.rs:63
Method
is_handler_enabled
(&self, no: HandlerID)
src/lib.rs:77
Method
is_unicode_keycode
(keycode: u32)
src/handlers/unicodekeyboard.rs:20
Method
keycode_to_unicode
(keycode: u32)
src/handlers/unicodekeyboard.rs:28
Method
leader_sequence_accepted
(&mut self, output: &mut T)
src/handlers/mod.rs:110
Method
new
()
src/test_helpers.rs:18
Method
new
()
src/lib.rs:44
Method
new
(id: HandlerID)
src/premade.rs:93
Method
new
(keycode: u32)
src/key_stream.rs:15
Method
new
( trigger1: impl AcceptsKeycode, trigger2: impl AcceptsKeycode, callbacks: M1,
src/handlers/oneshot.rs:54
Method
new
( trigger: impl AcceptsKeycode, action: MAction, onoff: MOnOff, )
src/handlers/spacecadet.rs:46
Method
new
(rewrites: &'static [(u32, u32)])
src/handlers/rewrite_layer.rs:19
Method
new
()
src/handlers/unicodekeyboard.rs:16
Method
new
(threshold_ms: u16)
src/handlers/autoshift.rs:19
Method
new
( trigger: impl AcceptsKeycode, action_short: M1, action_long: M2, threshold_m
src/handlers/longtap.rs:24
Method
new
(trigger: impl AcceptsKeycode, action: M, timeout_ms: u16)
src/handlers/tapdance.rs:31
Method
new
()
src/handlers/usbkeyboard.rs:20
Method
new
(trigger: impl AcceptsKeycode, callback: M)
src/handlers/macros.rs:18
Method
new
(sequence: &'a [u32], callback: M, backspaces: u8)
src/handlers/sequence.rs:33
Method
new
(rewrites: Vec<(F, LayerAction)>, auto_off: AutoOff)
src/handlers/layer.rs:51
Method
on_activate
(&mut self, output: &mut dyn USBKeyOut)
src/test_helpers.rs:127
Method
on_deactivate
(&mut self, output: &mut dyn USBKeyOut)
src/test_helpers.rs:131
Method
on_trigger
(&mut self, output: &mut dyn USBKeyOut)
src/premade.rs:23
Function
one_shot_gui
make the gui/windows key behave as a OneShot hint: use before space cadet
src/premade.rs:185
Method
pct
(&mut self, key: impl AcceptsKeycode, ms_since_last: u16, should: &[&[KeyCode]])
src/test_helpers.rs:203
Method
process_keys
( &mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T, )
src/test_helpers.rs:106
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/oneshot.rs:78
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/spacecadet.rs:62
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, _output: &mut T)
src/handlers/rewrite_layer.rs:25
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/unicodekeyboard.rs:37
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/autoshift.rs:38
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/longtap.rs:40
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/tapdance.rs:41
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/usbkeyboard.rs:26
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/debug_handlers.rs:52
Method
process_keys
(&mut self, events: &mut Vec<(Event, EventStatus)>, output: &mut T)
src/handlers/macros.rs:26
next →
1–100 of 160, ranked by callers