MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / is_mouse_button_pressed

Method is_mouse_button_pressed

core/input/input.cpp:355–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool Input::is_mouse_button_pressed(MouseButton p_button) const {
356 _THREAD_SAFE_METHOD_
357
358 if (disable_input) {
359 return false;
360 }
361
362 return mouse_button_mask.has_flag(mouse_button_to_mask(p_button));
363}
364
365static JoyAxis _combine_device(JoyAxis p_value, int p_device) {
366 return JoyAxis((int)p_value | (p_device << 20));

Callers 12

_editMethod · 0.80
_range_click_timeoutMethod · 0.80
draw_itemMethod · 0.80
_range_click_timeoutMethod · 0.80
_click_selection_heldMethod · 0.80
_script_selectedMethod · 0.80
_notificationMethod · 0.80
_notificationMethod · 0.80
_check_mouse_overMethod · 0.80
window_start_dragMethod · 0.80
window_start_resizeMethod · 0.80

Calls 2

mouse_button_to_maskFunction · 0.85
has_flagMethod · 0.45

Tested by 1

_notificationMethod · 0.64