Commit Graph

62 Commits

Author SHA1 Message Date
Jonas Bark
ff9671bfc5 fix: no crash on button press when no keymap is set
The keymap ('app') and the trainer app ('trainer_app') are independent
prefs. When the keymap one is missing while a trainer app is selected,
actionHandler.supportedApp stays null — every button press then threw
"Null check operator used on a null value" and the device registered no
buttons at all, so the SRAM edit screen came up empty.

- RemoteActions/DesktopActions/AndroidActions no longer dereference
  supportedApp (or getKeyPair) with `!`; they return the same
  noKeymapSet / noActionAssigned Error BaseActions already produces.
- Fall back to the selected trainer app when the keymap pref can't be
  resolved (initializeActions, Settings.init, deleteCustomAppProfile).
- BaseDevice.getOrAddButton keeps the created button in availableButtons
  even without a keymap, so the device still renders its buttons.
- The OBC BLE/mDNS emulators evaluated connectedApp.value! before the
  null guard that follows, making the guard dead code — reordered.
- handleButtonsClicked now forwards through recordError, which is why
  this never showed up in crash reporting.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-17 13:14:09 +02:00
Jonas Bark
a68b68a1b4 fix button mapping popup 2026-06-01 11:53:55 +02:00
Jonas Bark
d62c86fa77 fix access logic 2026-03-22 09:48:38 +01:00
Jonas Bark
6cd355c9f9 allow music / volume control for old purchases 2026-03-20 16:48:23 +01:00
Jonas Bark
7986437c6d add log entries 2026-03-11 10:30:43 +01:00
Jonas Bark
2c27f398e0 new ui #9 2026-03-11 08:15:02 +01:00
Jonas Bark
91f693ec0d new ui #5 2026-03-10 21:02:41 +01:00
Jonas Bark
60c4df253d create screenshot on Windows + macOS 2026-02-25 20:57:12 +01:00
Jonas Bark
f4b9a349d0 individual actions for single, double, long press 2026-02-25 11:20:18 +01:00
Jonas Bark
5c057f9bd4 enable shortcuts on iOS as well 2026-02-24 10:56:23 +01:00
Jonas Bark
1c96ddff60 resolve issue #310 2026-02-23 18:48:50 +01:00
Jonas Bark
98e7eaf51a work on issue #310 2026-02-23 15:18:17 +01:00
Jonas Bark
184cc5d671 Merge remote-tracking branch 'origin/copilot/allow-key-presses-to-rouvy' into login 2026-02-23 14:27:05 +01:00
copilot-swe-agent[bot]
1a19d740e7 Add target app name setting to send key presses to a specific app on macOS
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2026-02-23 08:26:10 +00:00
Jonas Bark
940508eb6f Windows: run any command 2026-02-23 09:07:45 +01:00
Jonas Bark
403ee4e9f9 macOS: open specific shortcut 2026-02-22 18:40:58 +01:00
Jonas Bark
6984969034 mark some actions as pro only 2026-02-22 10:32:11 +01:00
Jonas Bark
42472f59db cleanup toast handling 2026-02-08 10:01:54 +01:00
Jonas Bark
26b24716b9 cleanup streams on exit 2026-02-01 10:08:31 +01:00
Jonas Bark
0a9ea517f0 fix shorebird logic 2026-01-06 18:08:56 +01:00
Jonas Bark
39f791370f refactor update UI 2026-01-06 09:10:27 +01:00
copilot-swe-agent[bot]
579ebd4dce Add proper error handling for media key dispatch
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-30 12:34:41 +00:00
copilot-swe-agent[bot]
73638f77bf Fix command count increment order for media keys
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-30 12:33:21 +00:00
copilot-swe-agent[bot]
ae63067fea Add media key dispatching support for Desktop platforms
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-30 12:27:55 +00:00
Jonas Bark
ae4008d4de limit to 80 on Android during trial period, only count sent out commands 2025-12-17 10:02:32 +01:00
Jonas Bark
5a67f2ee76 remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
45d9ffda14 cleanup logs, improve handling of analog gamepad events 2025-12-07 10:28:39 +01:00
Jonas Bark
18317f3421 refactoring 2025-12-06 15:06:12 +01:00
Jonas Bark
f9e8859a83 refactoring 2025-12-06 11:46:18 +01:00
Jonas Bark
59090fdf79 keydown / key up handling for direct connections 2025-12-04 21:17:43 +00:00
Jonas Bark
f5387718f4 ui, fixes 2025-12-04 20:59:07 +00:00
Jonas Bark
eb3996a288 openbikeprotocol Bluetooth emulator 2025-11-29 17:10:23 +00:00
Jonas Bark
faa5fe92f1 better error handling 2025-11-23 08:56:30 +00:00
Jonas Bark
f42caaa27b show action results in the UI 2025-11-23 08:33:19 +00:00
Jonas Bark
6da4ee8b76 small refactoring 2025-11-17 12:49:09 +01:00
copilot-swe-agent[bot]
5b73cda282 Add support for modifier keys in keyboard mapping
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-11-07 18:10:14 +00:00
Jonas Bark
7d0079feea integration #1 2025-10-28 17:58:44 +01:00
Jonas Bark
ff2c77bf2f implement MyWhoosh link in the editor 2025-10-27 12:14:41 +01:00
Jonas Bark
8583a0b9fc adjust changelog and supported devices 2025-10-26 20:11:17 +01:00
Jonas Bark
8111c1b5a6 resolve issue #116 2025-10-18 09:56:04 +02:00
Jonas Bark
92379bfb41 fix issue #101 2025-10-14 09:15:37 +02:00
Jonas Bark
02fbfdc78f refactor device handling to support more devices #1 2025-10-13 10:59:12 +02:00
Jonas Bark
9f37246601 make the UI look nicer 2025-10-10 14:23:14 +02:00
Jonas Bark
b4f592a10b fix delayed clicks in some apps 2025-10-02 21:05:15 +02:00
Jonas Bark
3363dd7b38 fix #82 2025-10-01 20:33:56 +02:00
Jonas Bark
4b909b0886 fix issue #81 2025-10-01 15:41:19 +02:00
Jonas Bark
f23c0920c4 Android: stop foreground service when disconnecting, update dependencies 2025-09-30 08:42:27 +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
de19176b18 allow long touches / keyboard presses (fixes #61) 2025-09-08 14:01:28 +02:00
copilot-swe-agent[bot]
16d905e2b5 Refactor action method parameters from isPressed/isRepeated to isKeyDown/isKeyUp
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-09-07 10:18:20 +00:00