0
votes
0answers
131 views

LWJGL Mouse Input [closed]

I have this mouse function in my LWJGL program: public void mouseInput(){ int mouseX = Mouse.getX(); int mouseY = 600 - Mouse.getY(); int mouseDX = 0, mouseDY = 0; int lastX = 0, ...
1
vote
2answers
435 views

Detecting a click on a tile

I'm making a simple tile-map system in LWJGL, and I'm trying to figure out how to detect if the mouse is clicking inside of a tile. So far no matter where I click it's always the same tile that is ...