Skip to content

Commit 9ca810e

Browse files
committedJun 11, 2024
Prefix mouse capture status names
1 parent 0dd02fc commit 9ca810e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎objects/obj_test_cursor/Draw_0.gml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ else if (input_mouse_in_bounds())
1919
if (window_get_cursor() != _cursor) window_set_cursor(_cursor);
2020

2121
var _string = "in bound = " + string(input_mouse_in_bounds()) + "\n";
22-
_string += "capturing = " + string(input_mouse_capture_get().capture) + "\n";
23-
_string += "capture blocked = " + string(input_mouse_capture_get().blocked) + "\n";
22+
_string += "capturing = " + string(input_mouse_capture_get().__capture) + "\n";
23+
_string += "capture blocked = " + string(input_mouse_capture_get().__blocked) + "\n";
2424
_string += "enabled = " + string(input_cursor_mouse_enabled_get()) + "\n";
2525
_string += "inverted = " + string(input_cursor_inverted_get()) + "\n";
2626
_string += "mouse x = " + string(_mouse_x) + "\n";

‎objects/obj_test_cursor_gyro/Draw_0.gml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (!input_game_has_focus())
2020
{
2121
draw_set_color(c_gray);
2222
}
23-
else if (input_mouse_in_bounds() && input_mouse_capture_get().capture)
23+
else if (input_mouse_in_bounds() && input_mouse_capture_get().__capture)
2424
{
2525
draw_triangle(_mouse_x, _mouse_y, _mouse_x - 10, _mouse_y + 20, _mouse_x + 10, _mouse_y + 20, true);
2626
_cursor = cr_none;
@@ -32,7 +32,7 @@ if (window_get_cursor() != _cursor)
3232
}
3333

3434
var _string = "in bound = " + string(input_mouse_in_bounds()) + "\n";
35-
_string += "locked = " + string(input_mouse_capture_get().capture) + "\n";
35+
_string += "locked = " + string(input_mouse_capture_get().__capture) + "\n";
3636
_string += "mouse x = " + string(_mouse_x) + "\n";
3737
_string += "mouse y = " + string(_mouse_y);
3838

‎objects/obj_test_cursor_translation/Draw_0.gml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else if (input_mouse_in_bounds())
2222
if (window_get_cursor() != _cursor) window_set_cursor(_cursor);
2323

2424
var _string = "in bound = " + string(input_mouse_in_bounds()) + "\n";
25-
_string += "locked = " + string(input_mouse_capture_get().capture) + "\n";
25+
_string += "locked = " + string(input_mouse_capture_get().__capture) + "\n";
2626
_string += "mouse x = " + string(_mouse_x) + "\n";
2727
_string += "mouse y = " + string(_mouse_y);
2828

‎scripts/input_mouse_capture_get/input_mouse_capture_get.gml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ function input_mouse_capture_get()
66
__INPUT_GLOBAL_STATIC_LOCAL //Set static _global
77

88
return {
9-
capture: _global.__mouse_capture,
10-
sensitivity: _global.__mouse_capture_sensitivity,
11-
blocked: _global.__mouse_capture_blocked,
9+
__capture: _global.__mouse_capture,
10+
__sensitivity: _global.__mouse_capture_sensitivity,
11+
__blocked: _global.__mouse_capture_blocked,
1212
}
1313
}

0 commit comments

Comments
 (0)
Failed to load comments.