Skip to content

Conversation

FilipeLopesPires
Copy link
Contributor

Description: Improvements to A-Frame's integration of Logitech's MX Ink Stylus

Changes proposed:

  • Allow stylus visualization when in AR mode (i.e. Meta Quest passthrough / mixed reality)
  • Support brush stroke size variation based on controller button / tip pressure applied

@FilipeLopesPires
Copy link
Contributor Author

@dmarcos would you be the best PR reviewer for this?

if (!this.data.enabled) { return; }
if (!this.painting) { return; }
if (evt.detail.state.value === 1) {
this.data.size = this.originalSize;
Copy link
Member

Choose a reason for hiding this comment

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

don't modify the this.data.size It will be overridden if the component property changes. Have a this.sizeFactor variable that is applied below
this.stroke.setSize(this.data.size * this.sizeFactor)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch. SizeFactor added, take a look when you get a chance. And thanks for the review!

@dmarcos
Copy link
Member

dmarcos commented Sep 9, 2025

@FilipeLopesPires thanks for the patience. It's close. I left a comment. Thanks so much!

@dmarcos
Copy link
Member

dmarcos commented Sep 22, 2025

Thank you!

@dmarcos dmarcos merged commit f576550 into aframevr:master Sep 22, 2025
1 check passed
@FilipeLopesPires FilipeLopesPires deleted the logitech-mx-ink-controls-improvements branch September 29, 2025 14:56
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.

2 participants