Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Revert "glfw: set raw_mouse_motion to true if cursor is disabled"
Browse files Browse the repository at this point in the history
This reverts commit 8e091ce.
  • Loading branch information
castholm committed Dec 19, 2024
1 parent f556fac commit 65669a9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1561,12 +1561,7 @@ pub const InputModeCursor = enum(c_int) {

/// Sets the input mode of the cursor, whether it should behave normally, be hidden, or grabbed.
pub inline fn setInputModeCursor(self: Window, value: InputModeCursor) void {
if (value == .disabled) {
self.setInputMode(.cursor, value);
return self.setInputMode(.raw_mouse_motion, true);
}
self.setInputMode(.cursor, value);
return self.setInputMode(.raw_mouse_motion, false);
return self.setInputMode(InputMode.cursor, value);
}

/// Gets the current input mode of the cursor.
Expand Down

0 comments on commit 65669a9

Please sign in to comment.