Skip to content

Commit

Permalink
Write automouse allowed keycodes as text, minor text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vnegnev committed Jun 23, 2024
1 parent 90ad775 commit 17f50c0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
Binary file removed keyboards/svalboard/docs/automouse_allowed_keys.png
Binary file not shown.
32 changes: 28 additions & 4 deletions keyboards/svalboard/docs/firmware_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,41 @@ If you move your pointing device the Svalboard will switch to Layer 15 by defaul

You can exit this mode by hitting any key not mapped to a mouse button or pointing device feature.

*Note:* Many of the keybindings will not work on the automouse layer, due to the way the key events are processed. A key must be in the following set to not exit the automouse layer (as of commit 226e1200cf826ff17ee65899a6ad0e3d3b751ee1):

![Automouse allowed keys](./automouse_allowed_keys.png)
*Note:* Many of the keybindings will not work on the automouse layer, due to the way the key events are processed. A keycode must be in the following set to not exit the automouse layer (as of commit 226e1200cf826ff17ee65899a6ad0e3d3b751ee1):

```c
switch (keycode) {
case KC_BTN1:
case KC_BTN2:
case KC_BTN3:
case KC_BTN4:
case KC_BTN5:
case KC_WH_U:
case KC_WH_D:
case KC_WH_R:
case KC_WH_L:
case KC_LSFT:
case KC_RSFT:
case KC_LCTL:
case KC_RCTL:
case KC_LALT:
case KC_RALT:
case KC_LGUI:
case KC_RGUI:
case SV_SNIPER_2:
case SV_SNIPER_3:
case SV_SNIPER_5:
case SV_RECALIBRATE_POINTER:
break;
```
This can easily be changed by modifying the `switch` statement visible above in `process_record_kb()` in [keymap_support.c](../keymaps/keymap_support.c). Ask on the Discord for more info.
### Auto-exit timer
[TODO]
### Trackpoint recalibration
If your mouse pointer begins to drift, try recalibrating the zero by hitting 'down' on one of the pinkies.
If your mouse pointer begins to drift, try recalibrating the zero by hitting 'down' on one of the pinkies, which by default will activate `SV_RECALIBRATE_POINTER`.
### Activation threshold
[TODO]
Expand Down
4 changes: 2 additions & 2 deletions keyboards/svalboard/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Svalboard - Datahand Forever!

Keyboard Maintainer: [morganvenable](https://github.com/svalboard/vial-qmk) [@_claussen] on discord
Hardware Supported: RP2040, Svalboard Alpha
Hardware Supported: RP2040, Svalboard Alpha, Svalboard Lightly
Hardware Availability: [Store](https://www.svalboard.com)

Build example for this keyboard (after setting up your build environment):
Expand Down Expand Up @@ -47,4 +47,4 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to
To enter bootloader mode, simply double tap reset in 500ms or less. The device will come up as a mass storage device titled RPI-RP2. Drag the desired UF2 file to the drive and it will immediately reboot and enumerate as Svalboard.

## Svalboard-specific firmware features
See [Svalboard firmware features](docs/firmware_features.md) pages for information.
See [Svalboard firmware features](docs/firmware_features.md) pages for information.

0 comments on commit 17f50c0

Please sign in to comment.