Refactored everything into modules.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Input Handler Module
|
||||
* Manages the multi-line text input field with a custom cursor.
|
||||
*/
|
||||
class InputHandler {
|
||||
export class InputHandler {
|
||||
constructor(inputId = 'player_input', cursorId = 'cursor') {
|
||||
this.playerInput = document.getElementById(inputId);
|
||||
this.cursor = document.getElementById(cursorId);
|
||||
@@ -288,6 +288,3 @@ class InputHandler {
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
// Export the class if using modules (optional, depends on build setup)
|
||||
// export default InputHandler;
|
||||
|
||||
Reference in New Issue
Block a user