* Gets the singleton instance of KeyStateTracker.
()
| 85 | * Gets the singleton instance of KeyStateTracker. |
| 86 | */ |
| 87 | static getInstance(): KeyStateTracker { |
| 88 | if (!KeyStateTracker.#instance) { |
| 89 | KeyStateTracker.#instance = new KeyStateTracker() |
| 90 | } |
| 91 | return KeyStateTracker.#instance |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Resets the singleton instance. Useful for testing. |
no outgoing calls
no test coverage detected