Skip to content

Conversation

@joha4270
Copy link
Contributor

This commit adds some support for tablets with rings (#1367), by treating the ring as a bunch of buttons.

It most certainly needs a second pass, but its far enough along that I would like some thoughts on the general approach/structure.

In short, this pull adds support for treating the ring as positions + 2 individual buttons, the first two buttons being clockwise and anticlockwise buttons. This can be configured in a new "Wheel" UI tab.

This is a different approach than what #2256 does, which I was not aware of when I started on this. A final solution probably includes content from both.

Copy link
Contributor

@Sublimelime Sublimelime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane so far to me, pending someone who knows a bit more doing their review.

@joha4270 joha4270 requested a review from X9VoiD March 26, 2023 19:27
@joha4270 joha4270 requested a review from X9VoiD March 28, 2023 19:27
X9VoiD
X9VoiD previously approved these changes Mar 28, 2023
Copy link
Member

@X9VoiD X9VoiD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lookin real nice now! 🍞 Still some really smol stuff left but nothing that I can't fix myself before merge.

@joha4270 joha4270 marked this pull request as ready for review March 29, 2023 05:06
@joha4270 joha4270 requested a review from X9VoiD March 30, 2023 16:08
@joha4270
Copy link
Contributor Author

joha4270 commented Apr 2, 2023

Slight update, now also supports just binding the Wheel as if it was a button.

@X9VoiD
Copy link
Member

X9VoiD commented Apr 2, 2023

Revert the last commit. That'll only be confusing especially on tablets that do not support "sensing" when the wheel is touched but not rotated yet.

@joha4270
Copy link
Contributor Author

joha4270 commented Apr 2, 2023 via email

@jamesbt365 jamesbt365 mentioned this pull request May 4, 2023
2 tasks
@ghost
Copy link

ghost commented Aug 24, 2023

Any update on this?

@jamesbt365 jamesbt365 added this to the v0.7.0 milestone Aug 24, 2023
@gonX gonX self-assigned this Oct 12, 2023
@gonX gonX added enhancement New feature or request core OpenTabletDriver core library labels Nov 23, 2023
/// <param name="report">The report from the device</param>
/// <param name="bindings">The collection of bindings we are updating</param>
/// <param name="newStates">New states of the updated bindings</param>
/// <param name="offset">An offset into <paramref name="bindings"/> before <paramref name="newStates"/> applies</param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter is missing from the function, so this parameter annotation should be removed (or the functionality should be added to the function if still needed)

Suggested change
/// <param name="offset">An offset into <paramref name="bindings"/> before <paramref name="newStates"/> applies</param>

},
"AuxiliaryButtons": {
"ButtonCount": 12
"ButtonCount": 13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be changed. If it's incremented because it has a wheel that can be clicked this should be added as an attribute to the Wheel properties instead, e.g. IsClickable or similar naming.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I received a reply on Discord:

Yeah, probably not actually related to the core changes, but the tablet does actually have a 13th button in the center of the wheel

I think I would still prefer wheel to have a separate declaration. Thoughts @X9VoiD ?

@gonX
Copy link
Member

gonX commented Nov 23, 2023

Looks generally pretty good to me, though I would have to play around with the PR myself and see how it behaves.

@gonX gonX added the configuration Adds or modifies a tablet configuration label Nov 23, 2023
@iErik

This comment was marked as spam.

@gonX
Copy link
Member

gonX commented Oct 18, 2025

This will be superseded by a forward-port of #3497 to ensure the codebase doesn't deviate too much. Thanks for the well-attempted contribution, and sorry for letting this hang for so long.

@gonX gonX closed this Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration Adds or modifies a tablet configuration core OpenTabletDriver core library enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants