octotablet

Crates.iooctotablet
lib.rsoctotablet
version0.1.0
sourcesrc
created_at2024-03-16 06:21:20.26992
updated_at2024-03-16 06:21:20.26992
descriptionCross-platform Tablet and Stylus Api 🐙✨
homepage
repositoryhttps://github.com/Fuzzyzilla/octotablet
max_upload_size
id1175445
size387,480
Aspen (Fuzzyzilla)

documentation

README

Device-agnostic Cross-platform Tablet Library 🐙✨

Cross-platform high-level tablet/pad/stylus library, reporting connected hardware features and providing easy-to-use event-based access to user input.

Platform Support

Platform Support
Linux/Wayland (tablet_unstable_v2) Complete1
Windows (Ink RealTimeStylus) Complete2
Linux/X11 (xinput) I'll try
MacOS Help needed
IOS Help needed
Android Help needed
Windows (Winuser.h Pointer API) Not planned
Windows (wintab, proprietary) Not planned

Device Support

So far, tested on:

  • Wacom Cintiq 16 [DTK-1660]
  • Wacom Intuos (S) [CTL-4100]
  • Wacom Intuos Pro small [PTH-451]
  • Wacom Pro Pen 2
  • Wacom Pro Pen 2k
  • XP-Pen Deco-01

Documenting

By default, documentation contains the current platform's capabilities only (ie, building docs on windows will omit everything wayland-related). Run rustdoc with the docsrs cfg set in order to generate documentation for all platforms regardless of host platform:

RUSTFLAGS="--cfg docsrs" cargo doc

This is still restricted by enabled features.

Footnotes

  1. Compositor conformance to this protocol is hit or miss and some features may not work (to be expected from an unstable protocol I guess!)

  2. Only Tablets and Tools - Pads and associated hardware are not exposed by the Ink API. The status of pad hardware on windows is dire, often reported as emulated mouse/keyboard events!

Commit count: 0

cargo fmt