use of org.terasology.engine.context.internal.MockContext in project Terasology by MovingBlocks.
the class InputConfig method reset.
public void reset() {
Config defaultConfig = new Config(new MockContext());
defaultConfig.loadDefaults();
InputConfig defaultInputConfig = defaultConfig.getInput();
setMouseSensitivity(defaultInputConfig.mouseSensitivity);
setMouseYAxisInverted(defaultInputConfig.mouseYAxisInverted);
}
use of org.terasology.engine.context.internal.MockContext in project Terasology by MovingBlocks.
the class IntMathTest method setUpClass.
@BeforeAll
public static void setUpClass() throws Exception {
Config config = new Config(new MockContext());
CoreRegistry.setContext(new ContextImpl());
CoreRegistry.put(Config.class, config);
}
Aggregations