Browse Source

Merge branch 'qmk:master' into master

pull/17431/head
anubhav dhiman 1 year ago
committed by GitHub
parent
commit
17e171db2b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 27 additions and 16 deletions
  1. +6
    -0
      .github/dependabot.yml
  2. +1
    -1
      .github/workflows/api.yml
  3. +2
    -2
      .github/workflows/auto_tag.yml
  4. +1
    -1
      .github/workflows/cli.yml
  5. +1
    -1
      .github/workflows/develop_api.yml
  6. +1
    -1
      .github/workflows/develop_update.yml
  7. +2
    -2
      .github/workflows/docs.yml
  8. +1
    -1
      .github/workflows/feature_branch_update.yml
  9. +1
    -1
      .github/workflows/format.yml
  10. +2
    -2
      .github/workflows/format_push.yml
  11. +1
    -1
      .github/workflows/lint.yml
  12. +1
    -1
      .github/workflows/unit_test.yml
  13. +6
    -2
      quantum/mousekey.c
  14. +1
    -0
      quantum/mousekey.h

+ 6
- 0
.github/dependabot.yml View File

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

+ 1
- 1
.github/workflows/api.yml View File

@ -18,7 +18,7 @@ jobs:
if: github.repository == 'qmk/qmk_firmware'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
persist-credentials: false


+ 2
- 2
.github/workflows/auto_tag.yml View File

@ -22,12 +22,12 @@ jobs:
if: github.repository == 'qmk/qmk_firmware'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.26.0
uses: anothrNick/github-tag-action@1.39.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: 'patch'

+ 1
- 1
.github/workflows/cli.yml View File

@ -18,7 +18,7 @@ jobs:
container: qmkfm/qmk_cli
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies


+ 1
- 1
.github/workflows/develop_api.yml View File

@ -18,7 +18,7 @@ jobs:
if: github.repository == 'qmk/qmk_firmware'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
persist-credentials: false


+ 1
- 1
.github/workflows/develop_update.yml View File

@ -12,7 +12,7 @@ jobs:
if: github.repository == 'qmk/qmk_firmware'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.QMK_BOT_TOKEN }}
fetch-depth: 0


+ 2
- 2
.github/workflows/docs.yml View File

@ -20,7 +20,7 @@ jobs:
if: github.repository == 'qmk/qmk_firmware'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
@ -34,7 +34,7 @@ jobs:
qmk --verbose generate-docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4.3.4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: master


+ 1
- 1
.github/workflows/feature_branch_update.yml View File

@ -17,7 +17,7 @@ jobs:
- xap
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.QMK_BOT_TOKEN }}
fetch-depth: 0


+ 1
- 1
.github/workflows/format.yml View File

@ -19,7 +19,7 @@ jobs:
container: qmkfm/qmk_cli
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0


+ 2
- 2
.github/workflows/format_push.yml View File

@ -13,7 +13,7 @@ jobs:
container: qmkfm/qmk_cli
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
@ -37,7 +37,7 @@ jobs:
git config user.email 'hello@qmk.fm'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
if: ${{ github.repository == 'qmk/qmk_firmware'}}
with:
token: ${{ secrets.QMK_BOT_TOKEN }}


+ 1
- 1
.github/workflows/lint.yml View File

@ -12,7 +12,7 @@ jobs:
container: qmkfm/qmk_cli
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0


+ 1
- 1
.github/workflows/unit_test.yml View File

@ -23,7 +23,7 @@ jobs:
container: qmkfm/qmk_cli
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies


+ 6
- 2
quantum/mousekey.c View File

@ -252,7 +252,7 @@ void mousekey_task(void) {
}
}
if (has_mouse_report_changed(&mouse_report, &tmpmr)) {
if (has_mouse_report_changed(&mouse_report, &tmpmr) || should_mousekey_report_send(&mouse_report)) {
mousekey_send();
}
memcpy(&mouse_report, &tmpmr, sizeof(tmpmr));
@ -358,7 +358,7 @@ void mousekey_task(void) {
mouse_report.h = tmpmr.h;
}
if (has_mouse_report_changed(&mouse_report, &tmpmr)) {
if (has_mouse_report_changed(&mouse_report, &tmpmr) || should_mousekey_report_send(&mouse_report)) {
mousekey_send();
}
memcpy(&mouse_report, &tmpmr, sizeof(tmpmr));
@ -495,3 +495,7 @@ static void mousekey_debug(void) {
report_mouse_t mousekey_get_report(void) {
return mouse_report;
}
bool should_mousekey_report_send(report_mouse_t *mouse_report) {
return mouse_report->x || mouse_report->y || mouse_report->v || mouse_report->h;
}

+ 1
- 0
quantum/mousekey.h View File

@ -174,6 +174,7 @@ void mousekey_off(uint8_t code);
void mousekey_clear(void);
void mousekey_send(void);
report_mouse_t mousekey_get_report(void);
bool should_mousekey_report_send(report_mouse_t *mouse_report);
#ifdef __cplusplus
}


Loading…
Cancel
Save