Managed to have a working proto with cursor movement and position capturing (though a little unstable).