2022-12-10 05:06:01 +01:00
|
|
|
function mouse_click(mouse, focus = true) {
|
|
|
|
return focus && mouse_check_button(mouse);
|
|
|
|
}
|
|
|
|
|
|
|
|
function mouse_press(mouse, focus = true) {
|
|
|
|
return focus && mouse_check_button_pressed(mouse);
|
|
|
|
}
|
|
|
|
|
|
|
|
function mouse_release(mouse, focus = true) {
|
|
|
|
return focus && mouse_check_button_released(mouse);
|
2022-12-23 04:45:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#region mouse global
|
|
|
|
globalvar MOUSE_WRAP, MOUSE_WRAPPING;
|
2023-04-07 21:25:27 +02:00
|
|
|
|
2022-12-23 04:45:52 +01:00
|
|
|
MOUSE_WRAP = false;
|
|
|
|
MOUSE_WRAPPING = false;
|
|
|
|
|
2023-04-07 21:25:27 +02:00
|
|
|
#macro SCROLL_SPEED PREF_MAP[? "mouse_wheel_speed"]
|
|
|
|
|
2022-12-23 04:45:52 +01:00
|
|
|
function setMouseWrap() {
|
|
|
|
MOUSE_WRAP = true;
|
|
|
|
}
|
|
|
|
#endregion
|