Package gaiasky.input

Class GameMouseKbdListener

java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.input.GestureDetector
gaiasky.input.AbstractMouseKbdListener
gaiasky.input.GameMouseKbdListener
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, IObserver, IInputListener

public class GameMouseKbdListener extends AbstractMouseKbdListener implements IObserver
  • Constructor Details

    • GameMouseKbdListener

      public GameMouseKbdListener(gaiasky.input.GameMouseKbdListener.GameGestureListener l, NaturalCamera naturalCamera)
    • GameMouseKbdListener

      public GameMouseKbdListener(NaturalCamera naturalCamera)
  • Method Details

    • pollKeys

      public boolean pollKeys()
      Description copied from class: AbstractMouseKbdListener
      Implement key polling here.
      Specified by:
      pollKeys in class AbstractMouseKbdListener
      Returns:
      True if an action was successfully executed.
    • getResponseTime

      public float getResponseTime()
      Overrides:
      getResponseTime in class AbstractMouseKbdListener
    • activate

      public void activate()
      Specified by:
      activate in interface IInputListener
      Overrides:
      activate in class AbstractMouseKbdListener
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface IInputListener
      Overrides:
      deactivate in class AbstractMouseKbdListener
    • keyDown

      public boolean keyDown(int keycode)
      Specified by:
      keyDown in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyDown in class AbstractMouseKbdListener
    • keyUp

      public boolean keyUp(int keycode)
      Specified by:
      keyUp in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyUp in class AbstractMouseKbdListener
    • mouseMoved

      public boolean mouseMoved(int screenX, int screenY)
      Specified by:
      mouseMoved in interface com.badlogic.gdx.InputProcessor
      Overrides:
      mouseMoved in class com.badlogic.gdx.InputAdapter
    • touchUp

      public boolean touchUp(float x, float y, int pointer, int button)
      Overrides:
      touchUp in class com.badlogic.gdx.input.GestureDetector
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.