added standard c function pointer callbacks
input is working nicely on iOS