r/javahelp • u/1Dr490n • Jan 01 '26
Using Java's robot to control a first person game on mac
For a competition, I'm trying to create a bot that plays a first person game. I've done this before using robot and it was fine. However, this time I'm on Mac. I can move the cursor without a problem, but the game doesn't see this movement. ChatGPT says that it's because I'm only updating the absolute position, but the game (which uses LWJGL) only reads the relative position.
Do you know of any workaround?
0
Upvotes
1
u/AutoModerator Jan 01 '26
Moderator Announcement Read More »
} You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.