MX Ink Integration
This addon demonstrates how to integrate the Logitech MX Ink pen into a Fusion project.
It includes the OpenXR version of the Unity integration package, which is not compiled when the OpenXR or Input System packages are not installed.
Content
HardwareMXPen
The HardwareMXPen component is an XRShared hardware rig part (it derives from BaseHardwareRigPart): it detects the MX Ink pen and reads its inputs.
The pen is only detected through the Logitech OpenXR interaction profile: in Project Settings > XR Plug-in Management > OpenXR, enable the "Logitech MX Ink Stylus Interaction Profile" feature (for Android, and for Standalone if used). Without it, the pen is never detected, and no error is logged.
Ready-made prefabs are in Runtime/MXInkIntegration/Prefabs: HardwareRigWithPen (an XRShared hardware rig with a HardwareMXInkPen), and NetworkRigWithMXInkDrawer (the matching network rig, with a NetworkMXInkPenDrawer).
The HardwareMXPen should be placed on a hardware rig to detect a local pen.
NetworkMXPen
The NetworkMXPen class drives a sibling NetworkLineDrawer from the LineDrawing addon.
The current implementation follows this logic:
- Adds a drawing point whenever the MX Ink pen's pressure or tip button is pressed, initiating a drawing and/or line as needed.
- Stops the current line if pressure on both buttons is zero.
- Stops the current drawing when a button adjacent to the pressure button is pressed.
- Stops the current drawing if the stylus is no longer detected.
Dependencies
- LineDrawing
- DataSyncHelpers
- XRShared
- OpenXR Plugin package
- Input System package
Demo
A demo scene can be found in the Samples/DemoMXInk/Scenes folder.
Please note that to test this demo scene, the Meta packages must be installed in the project. Alternatively, you can use the Meta XR integration project (which includes the Meta packages) to test it directly.
Download
This addon latest version is included into the XR Addons project
Supported topologies
- shared mode
Changelog
- Version 2.1.4: Add FUSION_WEAVER to asmdef define constraints (no compile error before Fusion is installed)
- Version 2.1.3: Fix asmdef to solve an issue with Android builds
- Version 2.1.2: Fix demo scene
- Version 2.1.1: Fix to add grabbing by default to the network prefab of the pen
- Version 2.1.0:
- Update to support new XRShared architecture
- Switch to OpenXR version of the Logitech library
- Version 2.0.2: Fix dependencies check
- Version 2.0.1:
- Add collider to prefab, and some fixes to ensure BlockingContact compatibility
- Add feedback class
- Version 2.0.0: First release
Last updated on
Back to top