Processing with tangible user interface

Hi i am new to processing and I'm trying to figure out how to make the sphere move from left to right using a marker instead of the mouse.
Can you help me please?
I can use the marker to shoot but i cant move the sphere by shooting. Import TUIO.*;
