Class CameraPlugin
- java.lang.Object
-
- net.runelite.client.plugins.Plugin
-
- net.runelite.client.plugins.camera.CameraPlugin
-
- All Implemented Interfaces:
com.google.inject.Module
,KeyListener
,EventListener
,KeyListener
,MouseListener
@PluginDescriptor(name="Camera", description="Expands zoom limit, provides vertical camera, and remaps mouse input keys", tags={"zoom","limit","vertical","click","mouse"}, enabledByDefault=false) public class CameraPlugin extends Plugin implements KeyListener, MouseListener
-
-
Constructor Summary
Constructors Constructor Description CameraPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
keyPressed(KeyEvent e)
void
keyReleased(KeyEvent e)
void
keyTyped(KeyEvent e)
MouseEvent
mouseClicked(MouseEvent mouseEvent)
MouseEvent
mouseDragged(MouseEvent mouseEvent)
MouseEvent
mouseEntered(MouseEvent mouseEvent)
MouseEvent
mouseExited(MouseEvent mouseEvent)
MouseEvent
mouseMoved(MouseEvent mouseEvent)
MouseEvent
mousePressed(MouseEvent mouseEvent)
The event that is triggered when a mouse button is pressed In this method the right click is changed to a middle-click to enable rotating the cameraMouseEvent
mouseReleased(MouseEvent mouseEvent)
Correct the MouseEvent to release the correct buttonvoid
onClientTick(ClientTick event)
Checks if the menu has any options, because menu entries are built each tick and the MouseListener runs on the awt threadvoid
onConfigChanged(ConfigChanged ev)
void
onFocusChanged(FocusChanged event)
void
onScriptCallbackEvent(ScriptCallbackEvent event)
protected void
shutDown()
protected void
startUp()
-
Methods inherited from class net.runelite.client.plugins.Plugin
configure, equals, getInjector, getName, hashCode, resetConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.runelite.client.input.KeyListener
focusLost, isEnabledOnLoginScreen
-
-
-
-
Method Detail
-
onScriptCallbackEvent
@Subscribe public void onScriptCallbackEvent(ScriptCallbackEvent event)
-
onFocusChanged
@Subscribe public void onFocusChanged(FocusChanged event)
-
onConfigChanged
@Subscribe public void onConfigChanged(ConfigChanged ev)
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interfaceKeyListener
-
onClientTick
@Subscribe public void onClientTick(ClientTick event)
Checks if the menu has any options, because menu entries are built each tick and the MouseListener runs on the awt thread
-
mousePressed
public MouseEvent mousePressed(MouseEvent mouseEvent)
The event that is triggered when a mouse button is pressed In this method the right click is changed to a middle-click to enable rotating the cameraThis method also provides the config option to enable the middle-mouse button to always open the right click menu
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
public MouseEvent mouseReleased(MouseEvent mouseEvent)
Correct the MouseEvent to release the correct button- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseDragged
public MouseEvent mouseDragged(MouseEvent mouseEvent)
- Specified by:
mouseDragged
in interfaceMouseListener
-
mouseMoved
public MouseEvent mouseMoved(MouseEvent mouseEvent)
- Specified by:
mouseMoved
in interfaceMouseListener
-
mouseClicked
public MouseEvent mouseClicked(MouseEvent mouseEvent)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
public MouseEvent mouseEntered(MouseEvent mouseEvent)
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
public MouseEvent mouseExited(MouseEvent mouseEvent)
- Specified by:
mouseExited
in interfaceMouseListener
-
-