Java Code Examples for com.watabou.utils.Signal#Listener
The following examples show how to use
com.watabou.utils.Signal#Listener .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeyEvent.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static void addKeyListener( Signal.Listener<KeyEvent> listener ){ keySignal.add(listener); }
Example 2
Source File: KeyEvent.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static void removeKeyListener( Signal.Listener<KeyEvent> listener ){ keySignal.remove(listener); }
Example 3
Source File: PointerEvent.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static void addPointerListener( Signal.Listener<PointerEvent> listener ){ pointerSignal.add(listener); }
Example 4
Source File: PointerEvent.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static void removePointerListener( Signal.Listener<PointerEvent> listener ){ pointerSignal.remove(listener); }
Example 5
Source File: ScrollEvent.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static void addScrollListener( Signal.Listener<ScrollEvent> listener ){ scrollSignal.add(listener); }
Example 6
Source File: ScrollEvent.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static void removeScrollListener( Signal.Listener<ScrollEvent> listener ){ scrollSignal.remove(listener); }
Example 7
Source File: NoosaInputProcessor.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public void addKeyListener(Signal.Listener<Key<T>> listener) { eventKey.add(listener); }
Example 8
Source File: NoosaInputProcessor.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public void removeKeyListener(Signal.Listener<Key<T>> listener) { eventKey.remove(listener); }
Example 9
Source File: NoosaInputProcessor.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public void addTouchListener(Signal.Listener<Touch> listener) { eventTouch.add(listener); }
Example 10
Source File: NoosaInputProcessor.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public void removeTouchListener(Signal.Listener<Touch> listener) { eventTouch.remove(listener); }
Example 11
Source File: NoosaInputProcessor.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public void addMouseListener(Signal.Listener<PDMouseEvent> listener) { eventMouse.add(listener); }
Example 12
Source File: NoosaInputProcessor.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public void removeMouseListener(Signal.Listener<PDMouseEvent> listener) { eventMouse.remove(listener); }