Formatting, added eclipse prefs file

This commit is contained in:
Ondřej Hruška
2014-04-01 09:43:36 +02:00
parent d8530f2f1a
commit 33b329486b
105 changed files with 1119 additions and 1691 deletions
@@ -1,5 +1,6 @@
package mightypork.rogue.input;
import mightypork.rogue.AppAccess;
import mightypork.rogue.bus.DelegatingBusClient;
import mightypork.rogue.bus.events.KeyboardEvent;
+4 -6
View File
@@ -1,14 +1,13 @@
package mightypork.rogue.input;
public interface KeyBinder {
/**
* Bind handler to a keystroke, replace current handler if any
*
* @param stroke
* trigger keystroke
* @param task
* handler
* @param stroke trigger keystroke
* @param task handler
*/
abstract void bindKeyStroke(KeyStroke stroke, Runnable task);
@@ -16,8 +15,7 @@ public interface KeyBinder {
/**
* Remove handler from a keystroke (id any)
*
* @param stroke
* stroke
* @param stroke stroke
*/
abstract void unbindKeyStroke(KeyStroke stroke);
@@ -1,5 +1,6 @@
package mightypork.rogue.input;
import mightypork.rogue.bus.events.KeyboardEvent;
@@ -1,5 +1,6 @@
package mightypork.rogue.input;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
@@ -21,10 +22,8 @@ public class KeyBindingPool implements KeyBinder, KeyboardEvent.Listener {
/**
* Bind handler to a keystroke, replace current handler if any
*
* @param stroke
* trigger keystroke
* @param task
* handler
* @param stroke trigger keystroke
* @param task handler
*/
@Override
public void bindKeyStroke(KeyStroke stroke, Runnable task)
@@ -44,8 +43,7 @@ public class KeyBindingPool implements KeyBinder, KeyboardEvent.Listener {
/**
* Remove handler from keystroke (id any)
*
* @param stroke
* stroke
* @param stroke stroke
*/
@Override
public void unbindKeyStroke(KeyStroke stroke)
+3 -4
View File
@@ -1,5 +1,6 @@
package mightypork.rogue.input;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
@@ -16,10 +17,8 @@ public class KeyStroke {
/**
* KeyStroke
*
* @param down
* true for falling edge, up for rising edge
* @param keys
* keys that must be pressed
* @param down true for falling edge, up for rising edge
* @param keys keys that must be pressed
*/
public KeyStroke(boolean down, int... keys) {
this.down = down;