mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #87831 from Riteo/bitfield-xor
Core: Implement a XOR operator for BitField
This commit is contained in:
commit
9335b83a32
2 changed files with 2 additions and 1 deletions
|
@ -1563,7 +1563,7 @@ void WaylandThread::_wl_pointer_on_frame(void *data, struct wl_pointer *wl_point
|
|||
}
|
||||
|
||||
if (old_pd.pressed_button_mask != pd.pressed_button_mask) {
|
||||
BitField<MouseButtonMask> pressed_mask_delta = BitField<MouseButtonMask>((uint32_t)old_pd.pressed_button_mask ^ (uint32_t)pd.pressed_button_mask);
|
||||
BitField<MouseButtonMask> pressed_mask_delta = old_pd.pressed_button_mask ^ pd.pressed_button_mask;
|
||||
|
||||
const MouseButton buttons_to_test[] = {
|
||||
MouseButton::LEFT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue