Fuzzyzilla / octotablet

High-level Tablet/Stylus API for Rust
https://crates.io/crates/octotablet
MIT License
14 stars 2 forks source link

Add an SDL2 example #9

Closed Fuzzyzilla closed 2 months ago

Fuzzyzilla commented 2 months ago

Closes #8

Demonstrates how to use this crate with the sdl2 crate. This is, unfortunately, no straightforward task and requires the use of a wrapper type to implement the correct traits.

In the future, it would be best if octotablet had support for more versions of raw-window-handle directly, but the safety guarantees of previous versions are very weak and doing so soundly is a big ask!