Short: help emulate keyboard events (arrow keys, enter) in C code under linux.
Long: I am working at interfacing iPod clickwheel with Raspberry Pi. At the moment i can printf to terminal something like "button 1 pressed". But i need system-wide event, just like a keypress from real keyboard. My other code is on C so i cant implement Python.