Java 类com.badlogic.gdx.controllers.ControllerListener 实例源码

项目:buffer_bci    文件:BufferBciController.java   
/**
 * Initializes the BufferBciController instance.
 */
public BufferBciController() {
    this.buttons = new ArrayList<BufferBciButton>();
    this.axes = new ArrayList<BufferBciAxis>();
    this.controllerListeners = new ArrayList<ControllerListener>();
    this.unprocessedEvents = new ArrayList<BufferEvent>();
}
项目:buffer_bci    文件:BufferBciController.java   
/**
 * Called whenever a button is updated.
 * @param btn
 */
private void onButtonUpdated(BufferBciButton btn) {
    // Inform listeners.
    for (ControllerListener cl : controllerListeners) {
        if (btn.activated) {
            cl.buttonDown(this, btn.code);
        } else {
            cl.buttonUp(this, btn.code);
        }
    }
}
项目:buffer_bci    文件:BufferBciController.java   
/**
 * Called whenever an axis is updated.
 * @param axis
 */
protected void onAxisUpdated(BufferBciAxis axis)
{
    // Inform listeners.
    for (ControllerListener cl : controllerListeners) {
        cl.axisMoved(this, axis.code, axis.value);
    }
}
项目:teavm-libgdx    文件:TeaVMControllers.java   
@Override
public void addListener(ControllerListener listener) {
    listeners.add(listener);

}
项目:teavm-libgdx    文件:TeaVMControllers.java   
@Override
public void removeListener(ControllerListener listener) {
    listeners.removeValue(listener, true);
}
项目:teavm-libgdx    文件:TeaVMController.java   
@Override
public void addListener(ControllerListener listener) {
    this.listeners.add(listener);
}
项目:teavm-libgdx    文件:TeaVMController.java   
@Override
public void removeListener(ControllerListener listener) {
    this.listeners.removeValue(listener, true);
}
项目:teavm-libgdx    文件:TeaVMController.java   
public Array<ControllerListener> getListeners() {
    return listeners;
}
项目:libgdxcn    文件:AndroidControllers.java   
@Override
public void addListener (ControllerListener listener) {
    synchronized(eventQueue) {
        listeners.add(listener);
    }
}
项目:libgdxcn    文件:AndroidControllers.java   
@Override
public void removeListener (ControllerListener listener) {
    synchronized(eventQueue) {
        listeners.removeValue(listener, true);
    }
}
项目:libgdxcn    文件:AndroidController.java   
@Override
public void addListener (ControllerListener listener) {
    this.listeners.add(listener);
}
项目:libgdxcn    文件:AndroidController.java   
@Override
public void removeListener (ControllerListener listener) {
    this.listeners.removeValue(listener, true);
}
项目:libgdxcn    文件:AndroidController.java   
public Array<ControllerListener> getListeners() {
    return this.listeners;
}
项目:libgdxcn    文件:GwtController.java   
@Override
public void addListener(ControllerListener listener) {
    this.listeners.add(listener);
}
项目:libgdxcn    文件:GwtController.java   
@Override
public void removeListener(ControllerListener listener) {
    this.listeners.removeValue(listener, true);
}
项目:libgdxcn    文件:GwtController.java   
public Array<ControllerListener> getListeners() {
    return listeners;
}
项目:libgdxcn    文件:GwtControllers.java   
@Override
public void addListener(ControllerListener listener) {
    synchronized(eventQueue) {
        listeners.add(listener);
    }
}
项目:libgdxcn    文件:GwtControllers.java   
@Override
public void removeListener(ControllerListener listener) {
    synchronized(eventQueue) {
        listeners.removeValue(listener, true);
    }
}
项目:libgdxcn    文件:OisControllers.java   
public void addListener (ControllerListener listener) {
    listeners.add(listener);
}
项目:libgdxcn    文件:OisControllers.java   
public void removeListener (ControllerListener listener) {
    listeners.removeValue(listener, true);
}
项目:libgdxcn    文件:DesktopControllerManager.java   
public void addListener (ControllerListener listener) {
    listeners.add(listener);
}
项目:libgdxcn    文件:DesktopControllerManager.java   
public void removeListener (ControllerListener listener) {
    listeners.removeValue(listener, true);
}
项目:shadow-engine    文件:OisControllers.java   
public void addListener (ControllerListener listener) {
    listeners.add(listener);
}
项目:shadow-engine    文件:OisControllers.java   
public void removeListener (ControllerListener listener) {
    listeners.removeValue(listener, true);
}
项目:buffer_bci    文件:BufferBciController.java   
@Override
public void addListener(ControllerListener listener) {
    controllerListeners.add(listener);
}
项目:buffer_bci    文件:BufferBciController.java   
@Override
public void removeListener(ControllerListener listener) {
    controllerListeners.remove(listener);
}
项目:gdx-controllerutils    文件:ControllerMappingsTest.java   
@Override
public void addListener(ControllerListener listener) {

}
项目:gdx-controllerutils    文件:ControllerMappingsTest.java   
@Override
public void removeListener(ControllerListener listener) {

}