Jump to content

detecting mouse button up


photo

Recommended Posts

Widgets are automatically generates clicked callbacks on mouse release.

If you want some game logic which depends on mouse release event you should handle it manually.

 

There two ways to achieve that:

* Every frame check the status of engine.gui.getMouseButton() or engine.app.getMouseButton() function.

* Use engine.controls.setButtonReleaseCallback() controls event.

Link to comment
×
×
  • Create New...