Fix comparison bug with InputEvent

(cherry picked from commit b76a0ca40c)
This commit is contained in:
volzhs 2016-10-23 05:47:36 +09:00 committed by Rémi Verschelde
parent b0013f32bf
commit e56961f58b
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ bool InputEvent::operator==(const InputEvent &p_event) const {
case MOUSE_MOTION: case MOUSE_MOTION:
return mouse_motion.x == p_event.mouse_motion.x return mouse_motion.x == p_event.mouse_motion.x
&& mouse_motion.y == p_event.mouse_motion.y && mouse_motion.y == p_event.mouse_motion.y
&& mouse_motion.relative_x == p_event.mouse_motion.relative_y && mouse_motion.relative_x == p_event.mouse_motion.relative_x
&& mouse_motion.relative_y == p_event.mouse_motion.relative_y
&& mouse_motion.button_mask == p_event.mouse_motion.button_mask && mouse_motion.button_mask == p_event.mouse_motion.button_mask
&& key.mod == p_event.key.mod; && key.mod == p_event.key.mod;
case MOUSE_BUTTON: case MOUSE_BUTTON: