Play Minecraft with your graphics tablet! (sort of)
- Access to additional info from graphics tablet: Pen absolute position; pen pressure; tilting angles, etc...
- Mouse emulation: Emulate mouse; control player's camera.
- Buttons binding: Bind pen and tablet buttons to game's keybind or triggers from other mods.
- More to come!
- Clone Inking repository and this repository.
- Install Inking to Maven local repository:
cd inking && mvn install
. This will build natives for current platform only (blame .NET NativeAOT). - Install InkingCraft to Maven local repository:
cd ../inkingcraft && ./gradlew publishToMavenLocal
. This will install InkingCraft to local repository so you can use InkingCraft as dependency. It will also build the mod, which can be installed in yourmods/
folder (InkingCraft is a client-side mod so there is no need to install on server). - Enjoy!
There are 5 different ways to handle inputs with InkingCraft:
- Handle unfiltered packets through
TabletPacketsCallback
, which will call your callbacks in input thread (yes it is multithreaded so beware). - Handle filtered packets through
TabletPacketsCallback
(still call callbacks in input thread). - Handle packets in your GUI widget (by implementing
TabletElement
interface). Contains both sync and async methods. - Read the current pointer position in
InkingInputManager
(contains pointer's last received packet). - Register your callback directly to
Tablet
fromInking
, which also call your callback from input thread.
MIT license.