Package net.runelite.client.config
Class Keybind
- java.lang.Object
-
- net.runelite.client.config.Keybind
-
- Direct Known Subclasses:
ModifierlessKeybind
public class Keybind extends Object
A combination of zero or more modifier keys (Ctrl, alt, shift, meta) and an optional non-modifier key
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)intgetKeyCode()static IntegergetModifierForKeyCode(int keyCode)intgetModifiers()inthashCode()booleanmatches(KeyEvent e)If the KeyEvent is from a KeyPressed event this returns if the Event is this hotkey being pressed.protected booleanmatches(KeyEvent e, boolean ignoreModifiers)StringtoString()
-
-
-
Constructor Detail
-
Keybind
protected Keybind(int keyCode, int modifiers, boolean ignoreModifiers)
-
Keybind
public Keybind(int keyCode, int modifiers)
-
Keybind
public Keybind(KeyEvent e)
Constructs a keybind with that matches the passed KeyEvent
-
-
Method Detail
-
matches
public boolean matches(KeyEvent e)
If the KeyEvent is from a KeyPressed event this returns if the Event is this hotkey being pressed. If the KeyEvent is a KeyReleased event this returns if the event is this hotkey being released
-
matches
protected boolean matches(KeyEvent e, boolean ignoreModifiers)
-
getModifierForKeyCode
@Nullable public static Integer getModifierForKeyCode(int keyCode)
-
getKeyCode
public int getKeyCode()
-
getModifiers
public int getModifiers()
-
canEqual
protected boolean canEqual(Object other)
-
-