Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/YAL-GameMaker/window_mouse_queue
Extracts high-precision mouse/pointer motion data on Windows. Good for drawing software!
https://github.com/YAL-GameMaker/window_mouse_queue
gamemaker gamemaker-studio gamemaker-studio-2 gamemaker-studio-2-3
Last synced: 3 months ago
JSON representation
Extracts high-precision mouse/pointer motion data on Windows. Good for drawing software!
- Host: GitHub
- URL: https://github.com/YAL-GameMaker/window_mouse_queue
- Owner: YAL-GameMaker
- License: mit
- Created: 2021-10-29T00:25:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2021-10-31T11:28:45.000Z (over 2 years ago)
- Last Synced: 2024-01-24T13:34:37.442Z (6 months ago)
- Topics: gamemaker, gamemaker-studio, gamemaker-studio-2, gamemaker-studio-2-3
- Language: C++
- Homepage:
- Size: 78.1 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Lists
- awesome-gamemaker - Mouse Queue - Tracks the Windows mouse pointer with high precision. (Input Handling / Recommendations)
README
# window_mouse_queue
![](paint.gif)
This is a wrapper for `GetMouseMovePointsEx` function that allows to extract high-precision mouse/pointer motion data on Windows. Good for drawing software!
## Functions
- **window_mouse_queue_init()**
Call on game start!
- **window_mouse_queue_get(xlist, ylist)**
Adds new coordinates since the last call to the two provided `ds_list`s.
Returns the number of items added.
Note that this does not clear the lists prior!
- **window_mouse_queue_clear()**
Discards the accumulated coordinates without returning them.
If you aren't going to do anything with coordinates for this frame, you should call this function to avoid coordinate build-up.## Meta
**Author:** [YellowAfterlife](https://github.com/YellowAfterlife)
**License:** MIT