using arduino as 3d mouse

Your question does not contain enough information on what you want to do.

Weedpharma