It doesn't contain whole source.
I will add it later.
Simulate keyboard library for iOS
You can simulate keyboard event.
Test on iOS7, but I think this supports iOS6 too.
refer to main.mm (skeyboard; command line tool)
same as keycodes for BeeKeyboard
http://api.iolate.kr/beekeyboard/headers/BeeKeycode.h
Homebutton:
simulateKeyboardEvent(12, 64, 1);
simulateKeyboardEvent(12, 64, 0);
Copy (Cmd + C):
simulateKeyboardEvent(7, 231, 1);
simulateKeyboardEvent(7, 6, 1);
simulateKeyboardEvent(7, 6, 0);
simulateKeyboardEvent(7, 231, 0);