Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
YellowAfterlife committed Oct 29, 2021

Verified

This commit was signed with the committer’s verified signature.
neo1973 Markus Härer
0 parents commit ffc6c30
Showing 115 changed files with 7,840 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.yy linguist-language=Game Maker Language
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.vs/
*/#backups/*
*/Configs/*/*

*/extensions/*/*.cpp
*/extensions/*/*.dll
*/datafiles/window_mouse_queue.html

*/Debug/
*/Release/
Debug/
Release/
export/*.gmz
export/*.gmez
export/*.yyz
export/*.yymp
export/*.yymps
export/*.png
export/*.zip

*.sdf
help.rtf
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2021-, YellowAfterlife (https://yal.cc)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
8 changes: 8 additions & 0 deletions export/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
window_mouse_queue-for-GMS1/*

window_mouse_queue-for-GMS2/*
!window_mouse_queue-for-GMS2/assetpackage.yy

window_mouse_queue-for-GMS2.3+/*
!window_mouse_queue-for-GMS2.3+/window_mouse_queue_23.yyp
!window_mouse_queue-for-GMS2.3+/metadata.json
10 changes: 10 additions & 0 deletions export/itch-upload.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
set /p ver="Version?: "
echo Uploading %ver%...
set user=yellowafterlife
set ext=gamemaker-window_mouse_queue
cmd /C itchio-butler push window_mouse_queue-for-GMS1.gmez %user%/%ext%:gms1 --userversion=%ver%
cmd /C itchio-butler push window_mouse_queue-for-GMS2.yymp %user%/%ext%:gms2 --userversion=%ver%
cmd /C itchio-butler push window_mouse_queue-for-GMS2.3+.yymps %user%/%ext%:gms2.3 --userversion=%ver%

pause
3 changes: 3 additions & 0 deletions export/pack-legacy.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd legacy
cmd /C 7z a "../window_mouse_queue-for-GM8.1-or-older.zip" *
pause
32 changes: 32 additions & 0 deletions export/pack.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@echo off

if not exist "window_mouse_queue-for-GMS1" mkdir "window_mouse_queue-for-GMS1"
cmd /C copyre ..\window_mouse_queue.gmx\extensions\window_mouse_queue.extension.gmx window_mouse_queue-for-GMS1\window_mouse_queue.extension.gmx
cmd /C copyre ..\window_mouse_queue.gmx\extensions\window_mouse_queue window_mouse_queue-for-GMS1\window_mouse_queue
cmd /C copyre ..\window_mouse_queue.gmx\datafiles\window_mouse_queue.html window_mouse_queue-for-GMS1\window_mouse_queue\Assets\datafiles\window_mouse_queue.html
cd window_mouse_queue-for-GMS1
cmd /C 7z a window_mouse_queue-for-GMS1.7z *
move /Y window_mouse_queue-for-GMS1.7z ../window_mouse_queue-for-GMS1.gmez
cd ..

if not exist "window_mouse_queue-for-GMS2\extensions" mkdir "window_mouse_queue-for-GMS2\extensions"
if not exist "window_mouse_queue-for-GMS2\datafiles" mkdir "window_mouse_queue-for-GMS2\datafiles"
if not exist "window_mouse_queue-for-GMS2\datafiles_yy" mkdir "window_mouse_queue-for-GMS2\datafiles_yy"
cmd /C copyre ..\window_mouse_queue_yy\extensions\window_mouse_queue window_mouse_queue-for-GMS2\extensions\window_mouse_queue
cmd /C copyre ..\window_mouse_queue_yy\datafiles\window_mouse_queue.html window_mouse_queue-for-GMS2\datafiles\window_mouse_queue.html
cmd /C copyre ..\window_mouse_queue_yy\datafiles_yy\window_mouse_queue.html.yy window_mouse_queue-for-GMS2\datafiles_yy\window_mouse_queue.html.yy
cd window_mouse_queue-for-GMS2
cmd /C 7z a window_mouse_queue-for-GMS2.zip *
move /Y window_mouse_queue-for-GMS2.zip ../window_mouse_queue-for-GMS2.yymp
cd ..

if not exist "window_mouse_queue-for-GMS2.3+\extensions" mkdir "window_mouse_queue-for-GMS2.3+\extensions"
if not exist "window_mouse_queue-for-GMS2.3+\datafiles" mkdir "window_mouse_queue-for-GMS2.3+\datafiles"
cmd /C copyre ..\window_mouse_queue_23\extensions\window_mouse_queue window_mouse_queue-for-GMS2.3+\extensions\window_mouse_queue
cmd /C copyre ..\window_mouse_queue_23\datafiles\window_mouse_queue.html window_mouse_queue-for-GMS2.3+\datafiles\window_mouse_queue.html
cd window_mouse_queue-for-GMS2.3+
cmd /C 7z a window_mouse_queue-for-GMS2.3+.zip *
move /Y window_mouse_queue-for-GMS2.3+.zip ../window_mouse_queue-for-GMS2.3+.yymps
cd ..

pause
127 changes: 127 additions & 0 deletions export/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions export/thumbs.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
magick thumb.png -background #889ec5 -gravity center -extent 315x250 thumb-itch.png
magick thumb.png -background #889ec5 -gravity center -extent 560x240 thumb-twitter.png
magick thumb.png -background #889ec5 -gravity center -extent 540x240 thumb-tumblr.png
7 changes: 7 additions & 0 deletions export/window_mouse_queue-for-GMS2.3+/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"package_id": "window_mouse_queue",
"display_name": "window_mouse_queue",
"version": "1.0.0",
"package_type": "asset",
"ide_version": "2.3.2.560"
}
38 changes: 38 additions & 0 deletions export/window_mouse_queue-for-GMS2.3+/window_mouse_queue_23.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions export/window_mouse_queue-for-GMS2/assetpackage.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions export/window_mouse_queue.dmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```set template default.html```
```set title window_mouse_queue cheat sheet```
```set autoapi ext```
```set intro
This is a "cheat sheet" for "window_mouse_queue" extension by YellowAfterlife.
The extension can be found on [itch.io](https://yellowafterlife.itch.io/gamemaker-window_mouse_queue).
```
12 changes: 12 additions & 0 deletions export/window_mouse_queue.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.vs/
*/#backups/*
*/Configs/*/*
*/extensions/*/*.cpp
*/extensions/*/*.dll
*/Release/
Release/
export/*.gmez
export/*.png
export/*.gmz
*.sdf
help.rtf
Binary file added paint.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ffc6c30

Please sign in to comment.