Hey im a rust beginner and im wondering why the following code does not work:
(Using windows)
use livesplit_hotkey::{Hook, KeyCode};
pub use livesplit_hotkey::{Error, Result};
let hook = Hook::new().unwrap();
hook.register(KeyCode::MediaNextTrack, move || {
println!("captured MediaNextTrack")
}).unwrap();
hook.register(KeyCode::MediaPrevTrack, move || {
println!("captured MediaPrevTrack")
}).unwrap();
However nothing triggers here, am i missing something?
I tried to capture more common hotkeys like Numpad0 but that also does not work.
Hey im a rust beginner and im wondering why the following code does not work:
(Using windows)
However nothing triggers here, am i missing something?
I tried to capture more common hotkeys like Numpad0 but that also does not work.