Pretty sure that is all either depreciated, or only works on jailbroken devices. I tried the very first line, IOHIDEventSystemCreate, and it returned a null pointer.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.