Commit Graph

29 Commits

Author SHA1 Message Date
Jonas Bark
6e0861e556 Name the trainer app and show its transport in connection alerts
The "connected"/"disconnected" activity alerts fired when a trainer app
attaches to one of our emulators now name the app ("Connected to Zwift",
"Disconnected from Zwift") and tag the alert with the transport, so the
activity log shows a WiFi or Bluetooth icon depending on how the app is
connected instead of always Bluetooth.

- AlertNotification gains a connectionType field + a connection() factory
  that builds the localized, app-named message and tags the transport.
- All 6 emulator call sites (Zwift BLE, FTMS/Rouvy mDNS) route through it,
  passing their own type and core.settings.getTrainerApp()?.name.
- ConnectionMethodType.activityIcon maps network -> wifi, else -> bluetooth;
  overview threads connectionType through and uses it for the leading icon.
- Reuse existing connectedTo string; add disconnectedFrom (en/de/es/fr/it/pl).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 21:22:59 +02:00
Jonas Bark
a68b68a1b4 fix button mapping popup 2026-06-01 11:53:55 +02:00
Jonas Bark
6a366517c7 fix potential leak, cleanup 2026-04-22 18:26:43 +02:00
Jonas Bark
e5ec6546f8 fix logs 2026-03-19 21:11:29 +01:00
Jonas Bark
8c5d9d579c new ui #3 2026-03-10 15:51:19 +01:00
Jonas Bark
fba1b82b07 add long press option for devices that do not support it (tap once = down, tap again = up) 2026-02-25 18:43:00 +01:00
Jonas Bark
e32de9d951 training peaks BLE workaround 2026-02-16 12:10:05 +01:00
Jonas Bark
16140462d6 cleanup 2026-01-26 09:00:52 +01:00
Jonas Bark
8997b54a9a group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
57ce58448e translations and ux changes 2025-12-17 11:39:39 +01:00
Jonas Bark
5a67f2ee76 remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
8db16048cf new UI 2025-11-27 22:36:19 +00:00
Jonas Bark
f42caaa27b show action results in the UI 2025-11-23 08:33:19 +00:00
Jonas Bark
e4e9dd537c refactor connection with remote and controllers 2025-10-27 11:12:23 +01:00
Jonas Bark
26b388718a more cleanup, refactoring 2025-10-17 08:52:15 +02:00
Jonas Bark
7c01677b13 remove encryption as it's no longer used, cleanup 2025-10-17 08:15:49 +02:00
Jonas Bark
02fbfdc78f refactor device handling to support more devices #1 2025-10-13 10:59:12 +02:00
Javier Moro Sotelo
36dddd3ddd fixup! fixup! feature: add analog paddle support for Zwift Ride 2025-10-08 09:56:49 +02:00
Javier Moro Sotelo
a74fcfa793 fixup! feature: add analog paddle support for Zwift Ride 2025-10-08 09:34:40 +02:00
Javier Moro Sotelo
be8f746df2 feature: add analog paddle support for Zwift Ride
Implement analog paddle detection for Zwift Ride with Protocol Buffer parsing.
Paddles (Location 0=left, 1=right) trigger when pressure exceeds threshold and
are user-configurable via keymap settings.

Includes comprehensive test suite and reusable Protocol Buffer parser utilities
for handling non-standard embedded analog data.

Fixes #21

Signed-off-by: Javier Moro Sotelo <810976+jmoro@users.noreply.github.com>
2025-10-08 08:13:40 +02:00
Jonas Bark
4d7778ea53 make connection work on iOS 2025-09-29 10:14:19 +02:00
Jonas Bark
3e7de54bba refactor touch placements: show touches on screen, fix misplaced coordinates - should fix #64 2025-09-27 14:48:23 +02:00
Jonas Bark
6f51de5417 fix Zwift Click button assignment #12 2025-04-13 20:47:42 +02:00
Jonas Bark
0a40a680dc Android: custom touch mapping for media actions, add keymap for training peaks 2025-04-06 11:10:40 +02:00
Jonas Bark
6d6caae3f0 some refactoring, UI adjustments 2025-04-05 11:40:07 +02:00
Jonas Bark
da6b4e8f93 Zwift Ride: cleanup, fix button 2025-04-01 21:17:46 +02:00
Jonas Bark
07ff604042 Zwift Ride: add buttonPowerDown to shift gears
Zwift Play: Fix buttonShift assignment
Android: fix Media next button
2025-03-31 20:20:47 +02:00
Jonas Bark
f7b7214dc5 Zwift Ride: adjust on off button detection 2025-03-30 18:30:15 +02:00
Jonas Bark
54fe4a4c07 cleanup code 2025-03-30 14:40:08 +02:00