diff --git a/applications/plugins/usb_hid_autofire/.github/workflows/build-test.yml b/applications/plugins/usb_hid_autofire/.github/workflows/build-test.yml deleted file mode 100644 index 21a93b76d..000000000 --- a/applications/plugins/usb_hid_autofire/.github/workflows/build-test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Build - -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - name: Build application - steps: - - name: Cache toolchain - uses: actions/cache@v3 - id: toolchain-cache - with: - path: ./firmware - key: firmware - - name: Checkout firmware - if: steps.toolchain-cache.outputs.cache-hit != 'true' - run: git clone https://github.com/flipperdevices/flipperzero-firmware.git --recursive --depth 1 firmware - - name: Install toolchain - if: steps.toolchain-cache.outputs.cache-hit != 'true' - run: cd firmware && ./fbt - - name: Checkout application - uses: actions/checkout@v3 - with: - path: firmware/applications_user/usb_hid_autofire - - name: Build application - run: cd firmware && ./fbt fap_usb_hid_autofire diff --git a/applications/plugins/usb_hid_autofire/CHANGELOG.md b/applications/plugins/usb_hid_autofire/CHANGELOG.md index d2da0910d..d0924edd3 100644 --- a/applications/plugins/usb_hid_autofire/CHANGELOG.md +++ b/applications/plugins/usb_hid_autofire/CHANGELOG.md @@ -1,7 +1,13 @@ # Changelog +## 0.4 +- Show active/inactive state in primary font (bold) + +## 0.3 +- Add a delay between key-presses (with left/right buttons) + ## 0.2 -- update icon +- Update icon ## 0.1 -- initial release of the USB HID Autofire application +- Initial release of the USB HID Autofire application diff --git a/applications/plugins/usb_hid_autofire/usb_hid_autofire.c b/applications/plugins/usb_hid_autofire/usb_hid_autofire.c index c69d2144f..9d0bb0c78 100644 --- a/applications/plugins/usb_hid_autofire/usb_hid_autofire.c +++ b/applications/plugins/usb_hid_autofire/usb_hid_autofire.c @@ -31,12 +31,12 @@ static void usb_hid_autofire_render_callback(Canvas* canvas, void* ctx) { canvas_set_font(canvas, FontPrimary); canvas_draw_str(canvas, 0, 10, "USB HID Autofire"); + canvas_draw_str(canvas, 0, 34, btn_left_autofire ? "" : ""); canvas_set_font(canvas, FontSecondary); canvas_draw_str(canvas, 90, 10, "v"); canvas_draw_str(canvas, 96, 10, VERSION); canvas_draw_str(canvas, 0, 22, "Press [ok] for auto left clicking"); - canvas_draw_str(canvas, 0, 34, btn_left_autofire ? "" : ""); canvas_draw_str(canvas, 0, 46, "delay [ms]:"); canvas_draw_str(canvas, 50, 46, autofire_delay_str); canvas_draw_str(canvas, 0, 63, "Press [back] to exit"); @@ -85,19 +85,19 @@ int32_t usb_hid_autofire_app(void* p) { } switch(event.input.key) { - case InputKeyOk: - btn_left_autofire = !btn_left_autofire; - break; - case InputKeyLeft: - if(autofire_delay > 0) { - autofire_delay -= 10; - } - break; - case InputKeyRight: - autofire_delay += 10; - break; - default: - break; + case InputKeyOk: + btn_left_autofire = !btn_left_autofire; + break; + case InputKeyLeft: + if(autofire_delay > 0) { + autofire_delay -= 10; + } + break; + case InputKeyRight: + autofire_delay += 10; + break; + default: + break; } } } diff --git a/applications/plugins/usb_hid_autofire/version.h b/applications/plugins/usb_hid_autofire/version.h index 41c8b38b7..ac1f5d0fa 100644 --- a/applications/plugins/usb_hid_autofire/version.h +++ b/applications/plugins/usb_hid_autofire/version.h @@ -1 +1 @@ -#define VERSION "0.3" +#define VERSION "0.4"