split c wrapper into api
try add MouseEvent support