From 0e73adaf789cc2edcfd7d746372fbbca1af5b735 Mon Sep 17 00:00:00 2001 From: endolf Date: Sun, 28 Aug 2005 21:12:29 +0000 Subject: More testing git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/branches/forcefeedback@117 e343933a-64c8-49c5-92b1-88f2ce3e89e8 --- .../net/java/games/input/EventInterfaceTest.java | 53 +++++++++++++++++++--- .../net/java/games/input/LinuxDeviceRumbler.java | 6 --- .../java/games/input/LinuxEnvironmentPlugin.java | 29 ++++++++++++ plugins/linux/src/native/EventDevice.cpp | 3 ++ 4 files changed, 79 insertions(+), 12 deletions(-) diff --git a/plugins/linux/src/java/net/java/games/input/EventInterfaceTest.java b/plugins/linux/src/java/net/java/games/input/EventInterfaceTest.java index 5bf5e6a..85d0962 100644 --- a/plugins/linux/src/java/net/java/games/input/EventInterfaceTest.java +++ b/plugins/linux/src/java/net/java/games/input/EventInterfaceTest.java @@ -1,12 +1,43 @@ package net.java.games.input; +import java.util.ArrayList; + public class EventInterfaceTest { - public static void main(String args[]) { - EventInterface.eventInit(); - int numDevices = EventInterface.getNumDevices(); + public EventInterfaceTest() { + //EventInterface.eventInit(); + //int numDevices = EventInterface.getNumDevices(); + + Controller[] controllers = DefaultControllerEnvironment.getDefaultEnvironment().getControllers(); + ArrayList rumblers = new ArrayList(); + + for(int i=0;i