Skip to content

v0.1.27

Choose a tag to compare

@github-actions github-actions released this 26 Oct 22:34
· 54 commits to main since this release

One bug worth upgrading for, and the three changes that let a driver describe the mouse it turned out to be rather than the family it might be. Reported by @bluesceada on a Pulsar Xlite V3 and @variasjon on a Pulsar Xlite v4.

An export from a six-button mouse had no buttons in it

v0.1.26 taught the Nordic driver to refuse the two right-hand thumb buttons that only the X2A Wireless has. Both places that list every button did so in one loop wrapped in a single try, so the first refused button ended the list: pulsar-mouse printed five buttons and then an error where the DPI button should have been, and export_profile() dropped the whole buttons dict — so an exported profile from an Xlite V3, X2 V2 or X2 V2 Mini carried no bindings at all.

Both loops are per button now. A button the mouse hasn't got is left out; one that cannot be read says so on its own line and the rest still print.

The window is built again for what the mouse turns out to be

Every row, range and profile count in that window comes from the driver's capabilities, and those are read before anything is opened — which is the whole reason a driver serving several mice could only ever describe them all. Now a driver that learns better once it is open says so, and the window is rebuilt: an Xlite V3 titles itself one, and loses the two button rows it never had.

A rebuilt page counts as unread until it has been read, so Apply still refuses to write rows it has never filled; a profile number past the new count is clamped; and a rebuild waits for a read in flight rather than swapping the widgets under it.

The 1K dongle describes the mouse on the other end

It allowed five profiles where both mice ever measured behind it have six, and two lift-off distances where an X3 has three. It now asks which mouse it carries — a question it already asked, answered from its pairing memory in about a millisecond — and takes that mouse's profiles, DPI range and lift-off values. So an X3 behind the dongle can be set to 0.7 mm, which has been unreachable there since the encoding was decoded.

Its own polling rates stay its own: those belong to the link, not the mouse.

--profile is checked against the mouse

The CLI read capabilities off the class and validated --profile against them, so --profile 6 was refused for a mouse with six profiles. It now opens once up front, asks, and checks against the answer.


Full attribution is in the README.