yarn icon indicating copy to clipboard operation
yarn copied to clipboard

[Issue] - Rename input and event mapping classes for clarity.

Open Liam-Broome opened this issue 1 month ago • 0 comments

Issue

This pull request refactors input event class names and updates their usage throughout the codebase to improve clarity and consistency. The main changes involve renaming several input-related classes and updating method and target references to match the new names. These updates help make the codebase easier to understand and maintain by using more descriptive event names.

Input event class renames and updates:

  • Renamed AbstractInput to InputEvent, CharInput to TextInputEvent, KeyInput to KeyboardEvent, and MouseInput to MouseButtonEvent in their respective mapping files. [1] [2] [3] [4] [5]
  • Updated method and target references in unpick definition files to use the new class names (KeyboardEvent, MouseButtonEvent, InputEvent, etc.) instead of the old names. [1] [2] [3] [4]

GUI event mapping improvements:

  • Moved the Click class and its button() method to PointerEvent to better reflect its purpose and usage. [1] [2]

Mouse event method renaming:

  • Renamed the modifyMouseInput method in the Mouse class to modifyMouseButtonEvent for clarity.

Liam-Broome avatar Nov 21 '25 22:11 Liam-Broome