Hazel icon indicating copy to clipboard operation
Hazel copied to clipboard

Was bitwise OR intended here?

Open mmurrian opened this issue 2 years ago • 7 comments

https://github.com/TheCherno/Hazel/blob/a16f605b3aa82ecf1c47ebd5d505127de81028f2/Hazel/src/Hazel/Events/Event.h#L71

Do you want an already handled event to still be dispatched? If so, no change.

If not, this line needs short-circuiting (and a logical OR): m_Event.Handled = m_Event.Handled || func(static_cast<T&>(m_Event));

mmurrian avatar Dec 17 '21 13:12 mmurrian