For my code...
I use this. The problem is though, that since I have used the if(m != null) {}, If I don't move the mouse and click, it will only do the instructions 2 times, one for clicking, and one for letting go of my finger... how do I do it so that it does the instructions infinitely even if the mouse is not being moved when clicked? Thanks...
1 2 3 4 5 6 | MouseInfo m = getWorld().getMouseInfo(); if (m != null && m.getButton() == 1 ) { instructions... instructions... instructions... } |