Class Hotkeys
java.lang.Object
privbot.hooks.Hotkeys
- All Implemented Interfaces:
KeyListener,KeyEventDispatcher,EventListener,net.runelite.client.input.KeyListener
public final class Hotkeys
extends Object
implements net.runelite.client.input.KeyListener, KeyEventDispatcher
Queues configured key presses for the plugin's worker to drain. Call stop on plugin stop.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandispatchKeyEvent(KeyEvent event) drain()voidkeyPressed(KeyEvent event) voidkeyReleased(KeyEvent event) voidvoidstart()voidstop()voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.runelite.client.input.KeyListener
focusLost, isEnabledOnLoginScreen
-
Constructor Details
-
Hotkeys
public Hotkeys()
-
-
Method Details
-
bind
-
unbind
-
unbindAll
public void unbindAll() -
drain
-
start
public void start() -
stop
public void stop() -
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
dispatchKeyEvent
- Specified by:
dispatchKeyEventin interfaceKeyEventDispatcher
-