Class DesktopInput

java.lang.Object
mindustry.input.InputHandler
mindustry.input.DesktopInput
All Implemented Interfaces:
GestureDetector.GestureListener, InputProcessor

public class DesktopInput extends InputHandler
  • Field Details

    • movement

      public Vec2 movement
    • cursorType

      public Graphics.Cursor cursorType
      Current cursor type.
    • selectX

      public int selectX
      Position where the player started dragging a line.
    • selectY

      public int selectY
      Position where the player started dragging a line.
    • schemX

      public int schemX
      Position where the player started dragging a line.
    • schemY

      public int schemY
      Position where the player started dragging a line.
    • lastLineX

      public int lastLineX
      Last known line positions.
    • lastLineY

      public int lastLineY
      Last known line positions.
    • schematicX

      public int schematicX
      Last known line positions.
    • schematicY

      public int schematicY
      Last known line positions.
    • mode

      public PlaceMode mode
      Whether selecting mode is active.
    • selectScale

      public float selectScale
      Animation scale for line.
    • splan

      @Nullable public BuildPlan splan
      Selected build plan for movement.
    • deleting

      public boolean deleting
      Whether player is currently deleting removal plans.
    • shouldShoot

      public boolean shouldShoot
      Whether player is currently deleting removal plans.
    • panning

      public boolean panning
      Whether player is currently deleting removal plans.
    • panScale

      public float panScale
      Mouse pan speed.
    • panSpeed

      public float panSpeed
      Mouse pan speed.
    • panBoostSpeed

      public float panBoostSpeed
      Mouse pan speed.
    • selectMillis

      public long selectMillis
      Delta time between consecutive clicks.
    • prevSelected

      public Tile prevSelected
      Previously selected tile.
  • Constructor Details

    • DesktopInput

      public DesktopInput()
  • Method Details