https://github.com/steviegt6/dml-rs
Free and open-source reimplementation of Native Mouse Lock (display_mouse_lock) in Rust.
https://github.com/steviegt6/dml-rs
gamemaker
Last synced: 12 months ago
JSON representation
Free and open-source reimplementation of Native Mouse Lock (display_mouse_lock) in Rust.
- Host: GitHub
- URL: https://github.com/steviegt6/dml-rs
- Owner: steviegt6
- License: lgpl-2.1
- Created: 2023-02-12T09:23:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T00:47:23.000Z (about 3 years ago)
- Last Synced: 2025-06-26T20:07:42.394Z (12 months ago)
- Topics: gamemaker
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dml-rs
> `display_mouse_lock` in rust.
Free, open-source reimplementation of `display_mouse_lock` ([Native Mouse Lock](https://marketplace.yoyogames.com/assets/9857/native-mouse-lock)) in Rust. Written because I felt like it. And because it was easy.
# Notes
- Considerably smaller binary (36 times smaller) - 2,560 bytes (2.50 kilobytes) as opposed to 92,160 bytes (90.0 kilobytes).
- Lack of `display_mouse_bounds` support.
- Low priority as it is not used in [HoloCure](https://kay-yu.itch.io/holocure), which is what I wrote this for.
- No \*nix support.
- AFAIK, Native Mouse Lock is Windows-only as well, but I'd like to support \*nix at some point. Feel free to PR.
# Building
## Requirements
- [Rust](https://www.rust-lang.org/tools/install)
## Compiling
```bash
git clone https://github.com/steviegt6/dml-rs.git
cd dml-rs
cargo build --release
```
# Usage
## For In-Production Games
1. Download the latest release from the [releases page](https://github.com/steviegt6/dml-rs/releases).
2. Copy the `dml_rs.dll` file to your game's directory.
3. Rename `dml_rs.dll` to `display_mouse_lock_x64.dll` or whatever the name of the original DLL is.
## For In-Development Games
1. I do not know.
2. I do not know.
3. I do not know.