mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-04-01 08:45:28 +02:00
20 lines
458 B
Java
20 lines
458 B
Java
package com.minelittlepony.unicopia.input;
|
|
|
|
import com.minelittlepony.unicopia.UClient;
|
|
|
|
public final class Keyboard {
|
|
private static IKeyHandler keyHandler;
|
|
|
|
public static IKeyHandler getKeyHandler() {
|
|
|
|
if (keyHandler == null) {
|
|
if (UClient.isClientSide()) {
|
|
keyHandler = new UKeyHandler();
|
|
} else {
|
|
keyHandler = bind -> {};
|
|
}
|
|
}
|
|
|
|
return keyHandler;
|
|
}
|
|
}
|