Giter Site home page Giter Site logo

nahkd123 / inkingcraft Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 119 KB

Play Minecraft with your graphics tablet!

License: MIT License

Java 100.00%
client-mod fabricmc fabricmc-mod graphics-tablet java java-21 minecraft minecraft-mod pen-tablets

inkingcraft's Introduction

InkingCraft Mod Icon

InkingCraft

Play Minecraft with your graphics tablet! (sort of)

Features

  • 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!

Installing InkingCraft (as of Feb 29th, 2024)

  1. Clone Inking repository and this repository.
  2. Install Inking to Maven local repository: cd inking && mvn install. This will build natives for current platform only (blame .NET NativeAOT).
  3. 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 your mods/ folder (InkingCraft is a client-side mod so there is no need to install on server).
  4. Enjoy!

Handling inputs

There are 5 different ways to handle inputs with InkingCraft:

  1. Handle unfiltered packets through TabletPacketsCallback, which will call your callbacks in input thread (yes it is multithreaded so beware).
  2. Handle filtered packets through TabletPacketsCallback (still call callbacks in input thread).
  3. Handle packets in your GUI widget (by implementing TabletElement interface). Contains both sync and async methods.
  4. Read the current pointer position in InkingInputManager (contains pointer's last received packet).
  5. Register your callback directly to Tablet from Inking, which also call your callback from input thread.

License

MIT license.

inkingcraft's People

Contributors

nahkd123 avatar

Stargazers

 avatar

Watchers

 avatar

inkingcraft's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.