So, I’ve been working on a 3d game for quite a while now. It’s first-person, and you look around by moving the mouse - makes sense. I’ve sent the game to some friends to playtest, and it works fine for all but one of them. For one of them, any time they’re in a portion of the game that has a script to move the cursor manually with Robot, their mouse will instead skip to the edge of the window, preventing it from ever being on the actual window. Any time the cursor is not controlled, however, their mouse CAN be placed on the window. Because only they are having the problem, I’m thinking they have some sort of antivirus on their computer that’s messing with the program, but I haven’t been able to find any solutions both online and with them sharing their screen with me. Does anyone know what could be causing this?
I’ll post my code here:
if(surface instanceof processing.opengl.PSurfaceJOGL){
com.jogamp.newt.opengl.GLWindow window = (com.jogamp.newt.opengl.GLWindow)(((PSurfaceJOGL)surface).getNative());
com.jogamp.nativewindow.util.Point point = window.getLocationOnScreen(new com.jogamp.nativewindow.util.Point());
if (phase=="Play"&&pause==false) {
robot.mouseMove(point.getX()+width/2,point.getY()+height/2);
}
}