engo icon indicating copy to clipboard operation
engo copied to clipboard

Handle Mouse Buttons similar to keys

Open juztme87 opened this issue 7 years ago • 3 comments

Currently you can't use multiple mouse buttons simultaneously. This is because different buttons overwrite each other.

juztme87 avatar Dec 08 '18 13:12 juztme87

I'm trying to come up with a way to do this in a backwards compatible way, but this might have to be postponed for the 2.0 milestone. :/

jonbonazza avatar Dec 28 '18 22:12 jonbonazza

Yea, this will have to wait until 2.0. If someone comes up with a way to do this in a backwards compatible manner, we can reevaluate priority.

jonbonazza avatar Dec 29 '18 22:12 jonbonazza

Hmm. This is how GLFW handles it, however. The mouse button callback only works with one button at a time. The way we're doing it now is keeping track of the mouse state in the MouseSystem, so RMB stays down as long as an RMB down has been recorded and no RMB up has been done, and the same for LMB. Is the MouseSystem broken in that sense? Is there an issue with keeping track of it at the system level? I'm not sure. I'll look further into this. Sorry about the late reply, I've been meaning to get to this when I started looking into why the MouseSystem isn't working all the time with mobile.

Noofbiz avatar Dec 29 '18 23:12 Noofbiz