Package controller.inputs
Class MouseMotionInputs
java.lang.Object
controller.inputs.MouseMotionInputs
- All Implemented Interfaces:
MouseMotionListener,EventListener
This class implements the
MouseMotionListener interface.
Controller for listening to mouse motion inputs and handling them, rerouting the information to the right input controller based on the game state.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOverrides mouseDragged method fromMouseMotionListenerinterface.voidOverrides mouseMoved method fromMouseMotionListenerinterface.
-
Constructor Details
-
MouseMotionInputs
Constructs a new MouseMotionInputs.- Parameters:
gamePanel- the game panel
-
-
Method Details
-
mouseDragged
Overrides mouseDragged method fromMouseMotionListenerinterface.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Parameters:
e- the MouseEvent to handle
-
mouseMoved
Overrides mouseMoved method fromMouseMotionListenerinterface.- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
e- the MouseEvent to handle
-