Skip to content

Rust Hotkey libaries didnt fill my needs so i did this. Checks if keys have been pressed, only returning true once per keypress.

Notifications You must be signed in to change notification settings

kurtn3x/NexHotkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows only.

Example usage in src/main.rs.

Uses a slightly modified version of inputbot: https://github.com/obv-mikhail/InputBot (added function is_down() under iputbot/src/windows/mod.rs)

What it does

If you initialize a hotkey with exactly 1 keyboard key: event will return true once the key is released, so 1 keypress returns exactly 1 true value.

If you initialize a hotkey with more than 2 keyboard keys: event will return true, once all hotkeys are pressed at the same time. It will be able to return true again, once at least 1 key has been lifted.

About

Rust Hotkey libaries didnt fill my needs so i did this. Checks if keys have been pressed, only returning true once per keypress.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages