This is almost 100% not something you want to merge directly but it at least captures the plumbing needed to directly access which mouse button the event is for. I think it would probably be better to remove the iteration over the button enum values and use this? But I might be missing something :)
This is almost 100% not something you want to merge directly but it at least captures the plumbing needed to directly access which mouse button the event is for. I think it would probably be better to remove the iteration over the button enum values and use this? But I might be missing something :)