AltF02 / AltF02/mouse-rs

[feature request] lock mouse in a rectangle

オープン
#11 コメント 0 件 リアクション 1 件 担当者 1 名 @AltF02 が担当を希望しています GitHub で見る
enhancement
主要言語
Rust
スター
125
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。