Events for DukeScript
We’re happy to announce the new DukeScript Events API. It’s available now from Maven central and ongithub.
To use it add this dependency to your project:
With this library you can add simple Java event handling to HTML Elements. A typical use would be to combine it with our Canvas API.
To do so simply create a new Canvas and add the following snippet:
We made it fully pluggable, so it won’t interfere with your own EventHandling if you have implemented your own. The library supports KeyEvents, TouchEvents and MouseEvents. The library is available under the MIT-license and free to use in any project.
We’re looking forward to see what you will create with our new Library!