refactor: strip obvious comments

This commit is contained in:
edde746
2026-05-04 22:40:18 +02:00
parent fdaff3687d
commit ed4be7b96d
162 changed files with 208 additions and 1440 deletions
+1 -4
View File
@@ -153,7 +153,6 @@ class GamepadService with WindowListener {
GamepadService._({GamepadDuplicateInputGuard? duplicateInputGuard})
: _duplicateInputGuard = duplicateInputGuard ?? GamepadDuplicateInputGuard(enabled: () => Platform.isWindows);
/// Get the singleton instance.
static GamepadService get instance {
_instance ??= GamepadService._();
return _instance!;
@@ -166,7 +165,6 @@ class GamepadService with WindowListener {
void start() async {
appLogger.i('GamepadService: Starting on ${Platform.operatingSystem}');
// List connected gamepads
try {
final gamepads = await Gamepad.instance.listGamepads();
appLogger.i('GamepadService: Found ${gamepads.length} gamepad(s)');
@@ -193,7 +191,6 @@ class GamepadService with WindowListener {
appLogger.i('GamepadService: Listening for gamepad events');
}
/// Stop listening to gamepad events.
void stop() {
_stopDirectionRepeat();
_unregisterNativeKeyHandler();
@@ -325,8 +322,8 @@ class GamepadService with WindowListener {
_pressedButtons.remove(event.button);
if (_suppressedButtons.remove(event.button)) return;
// D-pad release — stop repeat
switch (event.button) {
// D-pad release — stop repeat
case GamepadButton.dpadUp:
case GamepadButton.dpadDown:
case GamepadButton.dpadLeft: