mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +01:00
24 lines
No EOL
518 B
Text
24 lines
No EOL
518 B
Text
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);
|
|
}
|
|
|
|
#region mouse global
|
|
globalvar MOUSE_WRAP, MOUSE_WRAPPING;
|
|
|
|
MOUSE_WRAP = false;
|
|
MOUSE_WRAPPING = false;
|
|
|
|
#macro SCROLL_SPEED PREF_MAP[? "mouse_wheel_speed"]
|
|
|
|
function setMouseWrap() {
|
|
MOUSE_WRAP = true;
|
|
}
|
|
#endregion |