Skip to content

Commit

Permalink
add note that you should frequently be using PointerHandle::motion
Browse files Browse the repository at this point in the history
  • Loading branch information
sodiboo committed Sep 27, 2024
1 parent f4c0842 commit 567bede
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/input/pointer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ impl<D: SeatHandler + 'static> PointerHandle<D> {
/// Update the current location of this pointer in the global space,
/// without sending any event and without updating the focus.
///
/// If you want to update the location, and update the focus,
/// and send events, use [Self::motion] instead of this.
///
/// This is useful when the pointer is only moved by relative events,
/// such as when a pointer lock is held by the focused surface.
/// The client can give us a cursor position hint, which corresponds to
Expand Down

0 comments on commit 567bede

Please sign in to comment.