public interface IInteractiveEvents
IInteractiveRobot
.IInteractiveRobot
Modifier and Type | Method and Description |
---|---|
void |
onKeyPressed(KeyEvent event)
This method is called when a key has been pressed.
|
void |
onKeyReleased(KeyEvent event)
This method is called when a key has been released.
|
void |
onKeyTyped(KeyEvent event)
This method is called when a key has been typed (pressed and released).
|
void |
onMouseClicked(MouseEvent event)
This method is called when a mouse button has been clicked (pressed and
released).
|
void |
onMouseDragged(MouseEvent event)
This method is called when a mouse button has been pressed and then
dragged.
|
void |
onMouseEntered(MouseEvent event)
This method is called when the mouse has entered the battle view.
|
void |
onMouseExited(MouseEvent event)
This method is called when the mouse has exited the battle view.
|
void |
onMouseMoved(MouseEvent event)
This method is called when the mouse has been moved.
|
void |
onMousePressed(MouseEvent event)
This method is called when a mouse button has been pressed.
|
void |
onMouseReleased(MouseEvent event)
This method is called when a mouse button has been released.
|
void |
onMouseWheelMoved(MouseWheelEvent event)
This method is called when the mouse wheel has been rotated.
|
void onKeyPressed(KeyEvent event)
See the sample.Interactive
robot for an example of how to use
key events.
event
- holds details about current eventKeyListener.keyPressed(KeyEvent)
,
onKeyReleased(KeyEvent)
,
onKeyTyped(KeyEvent)
void onKeyReleased(KeyEvent event)
See the sample.Interactive
robot for an example of how to use
key events.
event
- holds details about current eventKeyListener.keyReleased(KeyEvent)
,
onKeyPressed(KeyEvent)
,
onKeyTyped(KeyEvent)
void onKeyTyped(KeyEvent event)
See the sample.Interactive
robot for an example of how to use
key events.
event
- holds details about current eventKeyListener.keyTyped(KeyEvent)
,
onKeyPressed(KeyEvent)
,
onKeyReleased(KeyEvent)
void onMouseClicked(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseListener.mouseClicked(MouseEvent)
,
onMouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseDragged(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMouseEntered(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseListener.mouseEntered(MouseEvent)
,
onMouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseDragged(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMouseExited(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseListener.mouseExited(MouseEvent)
,
onMouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseDragged(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMousePressed(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseListener.mousePressed(MouseEvent)
,
onMouseMoved(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseDragged(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMouseReleased(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseListener.mouseReleased(MouseEvent)
,
onMouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseDragged(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMouseMoved(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseMotionListener.mouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseDragged(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMouseDragged(MouseEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseMotionListener.mouseDragged(MouseEvent)
,
onMouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseWheelMoved(MouseWheelEvent)
void onMouseWheelMoved(MouseWheelEvent event)
See the sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current eventMouseWheelListener.mouseWheelMoved(MouseWheelEvent)
,
onMouseMoved(MouseEvent)
,
onMousePressed(MouseEvent)
,
onMouseReleased(MouseEvent)
,
onMouseClicked(MouseEvent)
,
onMouseEntered(MouseEvent)
,
onMouseExited(MouseEvent)
,
onMouseDragged(MouseEvent)
Copyright © 2021 Robocode. All Rights Reserved.