AltF02 / AltF02/mouse-rs

[feature request] lock mouse in a rectangle

Abierto
#11 0 comentarios 1 reacción 1 asignado Reclamado por @AltF02 Ver en GitHub
enhancement
Lenguaje dominante
Rust
Estrellas
125
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

first of all, great package, fits my use case perfectly.
it'd be awesome to be able to lock the mouse in a box (not sure if this would be outside the scope of this crate).
Say for example I have coordinates, width and height.
I want to lock the mouse in that rectangle.
For example calling a function like `fn lock_mouse(x: i32, y: i32, width: i32, height: i32)` would lock the mouse in that rectangle.
kind of an equivalent to winit's `set_cursor_grab` (see [here](https://docs.rs/winit/0.26.1/winit/window/struct.Window.html#method.set_cursor_grab))
and, of course, a function to unlock it as well.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.