code fix, update changelog and readme

This commit is contained in:
Jonas Bark
2025-11-07 20:49:59 +01:00
parent 7c74d61b43
commit d4881faab1
5 changed files with 6 additions and 8 deletions

View File

@@ -2,9 +2,11 @@
**New Features:**
- Support for Shimano Di2
- Support Keyboard shortcuts with modifier keys (Ctrl, Alt, Shift, ...)
- Support cheap BLE HID remotes
**Fixes:**
- fix detection of Elite Square Sterzo devices
- fix detection of Elite Square Sterzo devices
- recognize cheap Bluetooth device clicks also when SwiftControl is in the background
### 3.3.0 (31-10-2025)

View File

@@ -51,8 +51,9 @@ Check the compatibility matrix below!
- Elite Square Smart Frame (beta)
- Gamepads (beta)
- 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 on Android
- on iOS, macOS and Windows it would require SwiftControl to act as media player - let me know if that works for you
- on iOS and macOS requires SwiftControl to act as media player
Support for other devices can be added; check the issues tab here on GitHub.

View File

@@ -1 +0,0 @@
.

View File

@@ -6,7 +6,6 @@ import 'package:dartx/dartx.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:gamepads/gamepads.dart';
import 'package:media_key_detector/media_key_detector.dart';
import 'package:swift_control/bluetooth/devices/bluetooth_device.dart';
import 'package:swift_control/bluetooth/devices/gamepad/gamepad_device.dart';
import 'package:swift_control/bluetooth/devices/hid/hid_device.dart';
@@ -167,9 +166,6 @@ class Connection {
if (settings.getMyWhooshLinkEnabled() && settings.getTrainerApp() is MyWhoosh && !whooshLink.isStarted.value) {
startMyWhooshServer();
}
mediaKeyDetector.addListener((mediaKey) {
print('Media key pressed: $mediaKey');
});
}
Future<void> startMyWhooshServer() {

View File

@@ -45,7 +45,7 @@ class ShimanoDi2 extends BluetoothDevice {
final readableIndex = index + 1;
_lastButtons[index] = value;
getOrAddButton(
actionHandler.supportedApp?.keymap.getOrAddButton(
'D-Fly Channel $readableIndex',
() => ControllerButton('D-Fly Channel $readableIndex'),
);