Interface IBindManager


public interface IBindManager
  • Method Summary

    Modifier and Type
    Method
    Description
    org.rusherhack.core.bind.key.IKey
    createKeyboardKey(int keyCode)
    Creates a new keyboard key from the specified glfw key code
    org.rusherhack.core.bind.key.IKey
    createMouseKey(int keyCode)
    Creates a new mouse key from the specified glfw key code
    org.rusherhack.core.bind.key.IKey
    getBind(org.rusherhack.core.bind.IBindable bindable)
     
    it.unimi.dsi.fastutil.objects.Object2ObjectMap<org.rusherhack.core.bind.IBindable,org.rusherhack.core.bind.key.IKey>
     
    org.rusherhack.core.bind.key.IKey
    Creates a key object from the specified key string
    default void
    register(org.rusherhack.core.bind.IBindable bindable)
     
    void
    register(org.rusherhack.core.bind.IBindable bindable, org.rusherhack.core.bind.key.IKey key)
     
    void
    setBind(String bindableName, org.rusherhack.core.bind.key.IKey key)
     
    void
    setBind(org.rusherhack.core.bind.IBindable bindable, org.rusherhack.core.bind.key.IKey key)
     
    void
    unregister(org.rusherhack.core.bind.IBindable bindable)
     
  • Method Details

    • register

      default void register(org.rusherhack.core.bind.IBindable bindable)
    • register

      void register(org.rusherhack.core.bind.IBindable bindable, org.rusherhack.core.bind.key.IKey key)
    • unregister

      void unregister(org.rusherhack.core.bind.IBindable bindable)
    • setBind

      void setBind(org.rusherhack.core.bind.IBindable bindable, org.rusherhack.core.bind.key.IKey key)
    • setBind

      void setBind(String bindableName, org.rusherhack.core.bind.key.IKey key)
    • getBind

      org.rusherhack.core.bind.key.IKey getBind(org.rusherhack.core.bind.IBindable bindable)
    • getBindRegistry

      it.unimi.dsi.fastutil.objects.Object2ObjectMap<org.rusherhack.core.bind.IBindable,org.rusherhack.core.bind.key.IKey> getBindRegistry()
    • parseKey

      org.rusherhack.core.bind.key.IKey parseKey(String key)
      Creates a key object from the specified key string
      Returns:
      the key
    • createKeyboardKey

      org.rusherhack.core.bind.key.IKey createKeyboardKey(int keyCode)
      Creates a new keyboard key from the specified glfw key code
      Parameters:
      keyCode - the glfw key code
      Returns:
      the key object
    • createMouseKey

      org.rusherhack.core.bind.key.IKey createMouseKey(int keyCode)
      Creates a new mouse key from the specified glfw key code
      Parameters:
      keyCode - the glfw key code
      Returns:
      the key object