mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
Merge branch 'ios' into copilot/fix-2d2954be-782f-43b7-b654-d4aa8263083d
This commit is contained in:
@@ -186,6 +186,10 @@ class Connection {
|
||||
devices.clear();
|
||||
}
|
||||
|
||||
void signalNotification(BaseNotification notification) {
|
||||
_actionStreams.add(notification);
|
||||
}
|
||||
|
||||
void signalChange(BaseDevice baseDevice) {
|
||||
_connectionStreams.add(baseDevice);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class MenuButton extends StatelessWidget {
|
||||
child: Text(e.name),
|
||||
onTap: () {
|
||||
Future.delayed(Duration(seconds: 2)).then((_) {
|
||||
connection.devices.firstOrNull?.actionStreamInternal.add(
|
||||
connection.signalNotification(
|
||||
RideNotification(Uint8List(0), analogPaddleThreshold: 25)..buttonsClicked = [e],
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user