jnr / jnr-ffi

Java Abstracted Foreign Function Layer
Other
1.25k stars 156 forks source link

Native Object filling "not working" #316

Closed pizzadox9999 closed 1 year ago

pizzadox9999 commented 1 year ago

Hi, I have the following problem while porting CSFML(itself is a port of SFML to c) to Java. In the event handling process the structs in the union should be filled with values for x and y but stay zero. I uploaded a working sample which produces said behaviour to https://github.com/pizzadox9999/JSFML. The java event classes can be found at src/org/jsfml/window/event/. The example uses the MouseMoveEvent. The c header files can be found under CSFML_header. For anybody who wants to try it, it is an Eclipse Maven project.

I would appreciate some help and guidence.

Best regards pizzadox9999