INNER CODE UNIT · Java
BindSet
GiveJavaAChance/PolyrayGameEngine · src/polyray/BindSet.java:6
public class BindSet {
private final BindSet parent;
private final HashMap<Integer, MousePress> mouseBindings;
private final HashMap<Integer, Runnable> keyBindings;
private final HashSet<Integer> allowedKeys;
private Runnable onPush, onPop;
public BindSet(BindSet set) {
this.parent = set;
this.mouseBindings = new HashMap<>();
this.keyBindings = new HashMap<>();
this.allowedKeys = new HashSet<>();
}
public final void setOnPush(Runnable r) {
this.onPush = r;
}