Service pakket verwijderd omdat deze toch niet wordt gebruikt. Langzaam toewerkend naar een zeer net geheel!
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
package pm.service;
|
|
||||||
|
|
||||||
public abstract class Service {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
package pm.service.javainput;
|
|
||||||
|
|
||||||
import de.hardcode.jxinput.JXInputDevice;
|
|
||||||
import de.hardcode.jxinput.JXInputManager;
|
|
||||||
|
|
||||||
import pm.exception.ServiceJavaInputException;
|
|
||||||
import pm.exception.device.JavaInputDeviceNotFoundException;
|
|
||||||
import pm.service.Service;
|
|
||||||
|
|
||||||
public class JavaInputService extends Service {
|
|
||||||
|
|
||||||
public JXInputDevice getDevice(String name) throws ServiceJavaInputException {
|
|
||||||
int numberOfDevices = JXInputManager.getNumberOfDevices();
|
|
||||||
for (int i = 0; i < numberOfDevices; ++i) {
|
|
||||||
JXInputDevice device = JXInputManager.getJXInputDevice(i);
|
|
||||||
if (device.getName().startsWith(name)) {
|
|
||||||
return device;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new JavaInputDeviceNotFoundException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void initialize() {
|
|
||||||
//JavaInputDevice.jxinputService = new JavaInputService();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user