Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement key press toggle #21

Open
github-actions bot opened this issue Aug 22, 2021 · 0 comments
Open

Implement key press toggle #21

github-actions bot opened this issue Aug 22, 2021 · 0 comments

Comments

@github-actions
Copy link

Line: 109

gyromouse//src/engine.rs

Lines 106 to 116 in f61e801

ExtAction::KeyPress(c, ClickType::Press) => self.mouse.enigo().key_down(c),
ExtAction::KeyPress(c, ClickType::Release) => self.mouse.enigo().key_up(c),
ExtAction::KeyPress(_, ClickType::Toggle) => {
// TODO: Implement key press toggle
eprintln!("Warning: key press toggle is not implemented");
}
ExtAction::MousePress(c, ClickType::Click) => self.mouse.enigo().mouse_click(c),
ExtAction::MousePress(c, ClickType::Press) => self.mouse.enigo().mouse_down(c),
ExtAction::MousePress(c, ClickType::Release) => self.mouse.enigo().mouse_up(c),
ExtAction::MousePress(_, ClickType::Toggle) => {
// TODO: Implement mouse click toggle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants