I'm creating a virtual mouse pointer control program, and I've run into some tricky problems

Shouldda read this: Modify the Keypad firmware to simulate the mouse.修改键盘固件来模拟鼠标