Don't poll keyboards and mice

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 3 years ago
parent 2ba526d92b
commit c13899dee4
  1. BIN
      RabiClone_0.0a.zip
  2. 3
      src/sig/RabiClone.java

Binary file not shown.

@ -92,6 +92,9 @@ public class RabiClone{
CONTROLLERS = ControllerEnvironment.getDefaultEnvironment().rescanControllers();
}
for (int i=0;i<CONTROLLERS.length;i++) {
if (CONTROLLERS[i].getType()==Controller.Type.KEYBOARD||CONTROLLERS[i].getType()==Controller.Type.MOUSE) {
continue;
}
if (CONTROLLERS[i].poll()) {
//System.out.println(CONTROLLERS[i].getPortType()+" // "+CONTROLLERS[i].getType());
Component[] components = CONTROLLERS[i].getComponents();

Loading…
Cancel
Save