improve handling of analog gamepad events

This commit is contained in:
Jonas Bark
2025-12-07 10:41:21 +01:00
parent 1647fe9818
commit 6302091c54
4 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ Best follow our landing page and the "Get Started" button: [bikecontrol.app](htt
- CYCPLUS BC2 Virtual Shifter
- Elite Sterzo Smart (for steering support)
- Elite Square Smart Frame (beta)
- Gamepads (beta)
- Gamepads
- Cheap Bluetooth buttons such as [these](https://www.amazon.com/s?k=bluetooth+remote) (beta)
- BLE HID devices and classic Bluetooth HID devices are supported
- works out of the box on Android

View File

@@ -10,7 +10,7 @@ import 'package:swift_control/widgets/ui/beta_pill.dart';
class GamepadDevice extends BaseDevice {
final String id;
GamepadDevice(super.name, {required this.id}) : super(availableButtons: [], isBeta: true);
GamepadDevice(super.name, {required this.id}) : super(availableButtons: []);
List<ControllerButton> _lastButtonsClicked = [];

View File

@@ -458,7 +458,7 @@ class _KeyWidget extends StatelessWidget {
style: TextStyle(
fontFamily: screenshotMode ? null : 'monospace',
fontSize: 12,
color: Theme.of(context).colorScheme.primaryForeground,
color: Colors.white,
),
),
),

View File

@@ -39,7 +39,7 @@ class ButtonWidget extends StatelessWidget {
fontFamily: screenshotMode ? null : 'monospace',
fontSize: big && button.color != null ? 20 : 12,
fontWeight: button.color != null ? FontWeight.bold : null,
color: button.color != null ? Colors.white : Theme.of(context).colorScheme.foreground,
color: Colors.white,
),
),
),