Merge pull request #71101 from dalexeev/fix-unpressable-buttons
Fix unpressable buttons
This commit is contained in:
commit
e84bab8e4f
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@
|
||||||
<member name="button_group" type="ButtonGroup" setter="set_button_group" getter="get_button_group">
|
<member name="button_group" type="ButtonGroup" setter="set_button_group" getter="get_button_group">
|
||||||
The [ButtonGroup] associated with the button. Not to be confused with node groups.
|
The [ButtonGroup] associated with the button. Not to be confused with node groups.
|
||||||
</member>
|
</member>
|
||||||
<member name="button_mask" type="int" setter="set_button_mask" getter="get_button_mask" enum="MouseButtonMask" default="0">
|
<member name="button_mask" type="int" setter="set_button_mask" getter="get_button_mask" enum="MouseButtonMask" default="1">
|
||||||
Binary mask to choose which mouse buttons this button will respond to.
|
Binary mask to choose which mouse buttons this button will respond to.
|
||||||
To allow both left-click and right-click, use [code]MOUSE_BUTTON_MASK_LEFT | MOUSE_BUTTON_MASK_RIGHT[/code].
|
To allow both left-click and right-click, use [code]MOUSE_BUTTON_MASK_LEFT | MOUSE_BUTTON_MASK_RIGHT[/code].
|
||||||
</member>
|
</member>
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BitField<MouseButtonMask> button_mask;
|
BitField<MouseButtonMask> button_mask = MouseButtonMask::LEFT;
|
||||||
bool toggle_mode = false;
|
bool toggle_mode = false;
|
||||||
bool shortcut_in_tooltip = true;
|
bool shortcut_in_tooltip = true;
|
||||||
bool was_mouse_pressed = false;
|
bool was_mouse_pressed = false;
|
||||||
|
|
Loading…
Reference in a new issue