mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Cleanup
This commit is contained in:
parent
c66c3590b1
commit
6648a9ff1a
@ -256,9 +256,9 @@ public class Vars implements Loadable{
|
|||||||
state = new GameState();
|
state = new GameState();
|
||||||
data = new GlobalData();
|
data = new GlobalData();
|
||||||
|
|
||||||
mobile = Core.app.getType() == ApplicationType.Android || Core.app.getType() == ApplicationType.iOS || testMobile;
|
mobile = Core.app.isMobile() || testMobile;
|
||||||
ios = Core.app.getType() == ApplicationType.iOS;
|
ios = Core.app.isIOS();
|
||||||
android = Core.app.getType() == ApplicationType.Android;
|
android = Core.app.isAndroid();
|
||||||
|
|
||||||
modDirectory.mkdirs();
|
modDirectory.mkdirs();
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
package mindustry.input;
|
package mindustry.input;
|
||||||
|
|
||||||
import arc.Application.ApplicationType;
|
import arc.*;
|
||||||
import arc.Core;
|
|
||||||
import arc.KeyBinds.*;
|
import arc.KeyBinds.*;
|
||||||
import arc.input.InputDevice.DeviceType;
|
import arc.input.InputDevice.*;
|
||||||
import arc.input.KeyCode;
|
import arc.input.*;
|
||||||
|
|
||||||
public enum Binding implements KeyBind{
|
public enum Binding implements KeyBind{
|
||||||
move_x(new Axis(KeyCode.a, KeyCode.d), "general"),
|
move_x(new Axis(KeyCode.a, KeyCode.d), "general"),
|
||||||
@ -54,7 +53,7 @@ public enum Binding implements KeyBind{
|
|||||||
block_select_10(KeyCode.num0),
|
block_select_10(KeyCode.num0),
|
||||||
|
|
||||||
zoom(new Axis(KeyCode.scroll), "view"),
|
zoom(new Axis(KeyCode.scroll), "view"),
|
||||||
menu(Core.app.getType() == ApplicationType.Android ? KeyCode.back : KeyCode.escape),
|
menu(Core.app.isAndroid() ? KeyCode.back : KeyCode.escape),
|
||||||
fullscreen(KeyCode.f11),
|
fullscreen(KeyCode.f11),
|
||||||
pause(KeyCode.space),
|
pause(KeyCode.space),
|
||||||
minimap(KeyCode.m),
|
minimap(KeyCode.m),
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=db822fce837c326b28f091138bf6b34839767b51
|
archash=53dae7fe3363a33793daa1d7036cc77f4e0e2797
|
||||||
|
Loading…
Reference in New Issue
Block a user