If you understand the AUM and try to convert it into lite-c take a look at mouse_pos3d() for A7.70