Package org.rusherhack.client.api.bind
Interface IBindManager
public interface IBindManager
-
Method Summary
Modifier and TypeMethodDescriptionorg.rusherhack.core.bind.key.IKey
createKeyboardKey
(int keyCode) Creates a new keyboard key from the specified glfw key codeorg.rusherhack.core.bind.key.IKey
createMouseKey
(int keyCode) Creates a new mouse key from the specified glfw key codeorg.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 stringdefault void
register
(org.rusherhack.core.bind.IBindable bindable) void
register
(org.rusherhack.core.bind.IBindable bindable, org.rusherhack.core.bind.key.IKey key) void
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
-
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
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
-