Comments (3)
Personal opinion: Why would you serialize a mouse button?
from enigo.
Maybe it's too specific but I ask anyway, because it is very easy to implement. I use enigo to translate game controller input to mouse/keyboard input. The mapping just gets saved as a config file with serde wich is very pleasant. I wanted to use serde's remote derive feature, but apparently it doesn't work on enums. And even then, they don't implement the Clone trait, wich is also needed. I think it would be ok, to just implement Clone but Serde would be nice to have.
from enigo.
Yeah, I guess this is good. Let me make a pull request :)
from enigo.
Related Issues (20)
- Remove some of the unsafe fn of macOS implementation HOT 1
- Document the coordinate system
- Don't panic if MouseButton::ScrollUp is clicked/pressed/released
- Should we rename key_sequence? HOT 1
- key_click causes app crash when using Tauri HOT 18
- Fix enigo for multiple monitors HOT 1
- key_down crash with raw keys HOT 4
- macOS: CapsLock not working
- Improve equivalence of keys across platforms HOT 2
- Collection of differences between Rustdesks version and our version HOT 1
- Wrong input on Mac 13.3 HOT 10
- install error HOT 3
- Enigo could work with programs that use DirectX/DirectInput HOT 5
- Can't get enigo working in Tauri app on MacOS HOT 5
- key_sequence() method doesn't take line return into account. HOT 2
- Do not panic when `SetCursorPos` fails HOT 4
- I am offline until the end of the month HOT 1
- Media keys Windows only? HOT 2
- Core dumped when invoking `mouse_location()` on Linux. HOT 3
- Mouse does not move on macOS unless `mouse_location` is called after moving the mouse HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enigo.