...not super critical because sokol_app.h treats the event struct as "write-only", but it's not nice. Nim doesn't seem to have the concept of a const-ptr argument, so it's not an easy thing to solve without wrapping the cdecl callback.