I'm trying to set up a project using Gillius' jalleg bindings.
I'm translating one of my C++ games to java, but I'm stuck. In the function:
In the C++ variant, here the event variable is filled in with the actual event that occurred. But in the java version, it remains null, and the game crashes with a NullPointerException.
Does anybody have any working sample code of an event loop with jalleg? That would be extremely helpful.
edit: Gillius already solved the code problem by email. I should have initialized ALLEGRO_EVENT like so:
Nevertheless, the question still stands: does anybody use jalleg?