Add some lua API such as setCursorPos and mouseClick. Implemented timer event