Package Game

Class Input

java.lang.Object
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class Input extends MouseAdapter
Handles player mouse input, including all mouse event actions such as pressing, releasing, and dragging pieces on the chess board.

This class allows players to interact with the chess board by selecting (pressing), moving (dragging), and placing (releasing) pieces. It updates the board state based on valid moves or resets the piece if the move is invalid.

See Also: