how can I program my cursor to be like those first person shooter game?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how can I program my cursor to be like those first person shooter game?

diskhub
how can I program like those first person shooter game where the cursor is on the center, but yet is able to detect my mouse movement when it goes to the left and right... and hence affects my camera rotation.

Java Robot seems buggy and i can't seem to be able to script anything for the movement if i do use it.
any advice?
Reply | Threaded
Open this post in threaded view
|

Re: how can I program my cursor to be like those first person shooter game?

gouessej
Administrator
Hi!

Java AWT Robot is not buggy, just difficult to use for that. Look at the source code of my own First Person Shooter to see how to do this, in the alpha branch (in the only class that uses java.awt.Robot). Good luck.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: how can I program my cursor to be like those first person shooter game?

diskhub
Hi,
thanks. I will taKe a look.
Thank u for ur reply :D