From 8ac762037fec207dfac9b5ed220d54e4d7969873 Mon Sep 17 00:00:00 2001 From: Kevin Glass Date: Mon, 21 Aug 2006 17:25:49 +0000 Subject: [PATCH] Update controllers test to not poll() the controllers from multiple threads. --- .../org/lwjgl/test/input/TestControllers.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/java/org/lwjgl/test/input/TestControllers.java b/src/java/org/lwjgl/test/input/TestControllers.java index f3649f31..212cde2e 100644 --- a/src/java/org/lwjgl/test/input/TestControllers.java +++ b/src/java/org/lwjgl/test/input/TestControllers.java @@ -96,21 +96,9 @@ public class TestControllers extends JPanel { frame.setSize(230,400); frame.setLocation(index*30,index*30); frame.setVisible(true); - - Thread t = new Thread() { - public void run() { - while (true) { - try { Thread.sleep(100); } catch (Exception e) {}; - pollAndUpdate(); - } - } - }; - t.start(); } - public void pollAndUpdate() { - Controllers.poll(); - + public void updateDetails() { for (int i=0;i