protected void pollDevice() throws IOException { // Get the data off the native queue. context.processEvents(); super.pollDevice(); }
/** * Creates a new EventQueue. Events in old queue are lost. */ public final void setEventQueueSize(int size) { try { setDeviceEventQueueSize(size); event_queue = new EventQueue(size); } catch (IOException e) { ControllerEnvironment.log("Failed to create new event queue of size " + size + ": " + e); } }
public synchronized boolean poll() { Component[] components = getComponents(); try { pollDevice(); for (int i = 0; i < components.length; i++) { AbstractComponent component = (AbstractComponent)components[i]; while (getNextDeviceEvent(event)) { AbstractComponent component = (AbstractComponent)event.getComponent(); float value = event.getValue();
public synchronized boolean poll() { Component[] components = getComponents(); try { pollDevice(); for (int i = 0; i < components.length; i++) { AbstractComponent component = (AbstractComponent)components[i]; while (getNextDeviceEvent(event)) { AbstractComponent component = (AbstractComponent)event.getComponent(); float value = event.getValue();
public synchronized boolean poll() { Component[] components = getComponents(); try { pollDevice(); for (int i = 0; i < components.length; i++) { AbstractComponent component = (AbstractComponent)components[i]; while (getNextDeviceEvent(event)) { AbstractComponent component = (AbstractComponent)event.getComponent(); float value = event.getValue();
/** * Creates a new EventQueue. Events in old queue are lost. */ public final void setEventQueueSize(int size) { try { setDeviceEventQueueSize(size); event_queue = new EventQueue(size); } catch (IOException e) { ControllerEnvironment.log("Failed to create new event queue of size " + size + ": " + e); } }
protected void pollDevice() throws IOException { // Get the data off the native queue. context.processEvents(); super.pollDevice(); }
public synchronized boolean poll() { Component[] components = getComponents(); try { pollDevice(); for (int i = 0; i < components.length; i++) { AbstractComponent component = (AbstractComponent)components[i]; while (getNextDeviceEvent(event)) { AbstractComponent component = (AbstractComponent)event.getComponent(); float value = event.getValue();
/** * Creates a new EventQueue. Events in old queue are lost. */ public final void setEventQueueSize(int size) { try { setDeviceEventQueueSize(size); event_queue = new EventQueue(size); } catch (IOException e) { ControllerEnvironment.logln("Failed to create new event queue of size " + size + ": " + e); } }
/** * Creates a new EventQueue. Events in old queue are lost. */ public final void setEventQueueSize(int size) { try { setDeviceEventQueueSize(size); event_queue = new EventQueue(size); } catch (IOException e) { ControllerEnvironment.log("Failed to create new event queue of size " + size + ": " + e); } }