Skip to content

teevolution: Terra Pro button remap and four onboard banks - #80

Open
dwei30 wants to merge 2 commits into
OpenMouse-Project:mainfrom
dwei30:terra-pro
Open

teevolution: Terra Pro button remap and four onboard banks#80
dwei30 wants to merge 2 commits into
OpenMouse-Project:mainfrom
dwei30:terra-pro

Conversation

@dwei30

@dwei30 dwei30 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Write Terra Pro button assignments as 4-byte key-function records in flash (KeyFunction = 96, button i at 96 + 4*i), matching TeevoLink. Keep at least one Left Click.
  • Expose the four firmware profile banks (GetCurrentConfig 0x0e / SetCurrentConfig 0x0f, 0-based 0–3). setProfile is 1-based in the driver, settles, then confirms with GetCurrentConfig.
  • readStatus now reports profileCount: 4, 1-based activeProfile, plus buttonMappings / buttonOptions so OpenMouse can show the Profiles UI.

Test plan

  • npm test in mouse-protocol (codec + HID tests for remap, last Left Click, and bank switch)
  • On a Terra Pro: remap a non-left button, power-cycle, confirm it stuck
  • Switch banks 1–4 and confirm DPI / buttons / debounce follow the bank
  • Confirm refusing to remap the last Left Click still works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant