use of io.xol.chunkstories.api.input.Input in project chunkstories by Hugobros3.
the class Lwjgl3ClientInputsManager method insertInput.
public void insertInput(String type, String name, String value, Collection<String> arguments) {
Input input;
if (type.equals("keyBind")) {
Lwjgl3KeyBind key = new Lwjgl3KeyBind(this, name, value);
input = key;
if (arguments.contains("hidden"))
key.editable = false;
if (arguments.contains("repeat"))
key.repeat = true;
// keyboardInputs.add(key);
} else if (type.equals("virtual")) {
input = new InputVirtual(name);
} else if (type.equals("keyBindCompound")) {
Lwjgl3KeyBindCompound keyCompound = new Lwjgl3KeyBindCompound(this, name, value);
input = keyCompound;
} else
return;
inputs.add(input);
inputsMap.put(input.getHash(), input);
}
use of io.xol.chunkstories.api.input.Input in project chunkstories by Hugobros3.
the class ServerInputsManager method insertInput.
public void insertInput(String type, String name, String value, Collection<String> arguments) {
Input input;
// 2deep4me
if (type.equals("keyBind") || type.equals("virtual")) {
input = new InputVirtual(name);
} else
return;
inputs.add(input);
inputsMap.put(input.getHash(), input);
}
Aggregations