Pergunta

I have to do an assignment in JAVA in which I have to connect to computers through bluetooth device and once they are connected, one computer's mouse can also control other computer's mouse. Means if I want to open my computer on the other computer, I will move the mouse on my computer and select the my computer option on the other computer using my computer's mouse.

What i have done so far is that I have made the connection between two computers successfully. Now i have no idea what to do with mouse. Is there will be some mouse events transfer through bluetooth device or something else?

All the development is done in Java using Bluecove API.

Foi útil?

Solução

You can try using the Robot to do the task fastly as it is easier to learn and use. The other alternative is to use JNA or Java Native Access to do the same. You can try looking at an example on using Robot

Outras dicas

Would you not get the x and y positions of the mouse and then set the x and y on the other computer?

Mind you, I'm only 13 and have only programmed for one and a bit years. I'm most likely wrong.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top