After wasting many hours of my precious life, I've finally managed to bridge OpenTabletDriver to Java (in other words, I can finally read input directly from graphics tablet in Java). You can find the bridge here: https://github.com/nahkd123/inking. Please note that you have to build it yourself in order to build the native library and to build it, you need .NET 8 SDK and gcc/msbuild (the .NET runtime is not needed but it will includes with your .NET SDK anyways
).
For those that doesn't know what graphics tablets are, you can just... search it up or see https://en.wikipedia.org/wiki/Graphics_tablet.
Right now, I'm looking for some mod ideas that make use of graphics tablets' features, such as pen pressure, pen tilting and pen hovering distance. I've already came up with some ideas in mind (though I might not be able to do them all):
- A building mod where player can sculpt the terrain with their tablet. Higher pen pressure = larger brush radius/higher strength. Pen tilting may be used to control the direction of sculpting tool.
- Another building mod where you can build in the air by hovering the pen. Press the button on the pen (or on your keyboard) to build.
- Play the game with pen and tablet. Because I can read the physical input size of tablet in millimeters, I can keep the sensitivity across all tablets.
- Yet another building mod where you can assemble your own brush that depends on the tablet inputs. Brushes can be assembled by connecting nodes/modules together, kinda similar to Blender's Geometry Node.
- Control the WorldEdit brushes' parameters. Not sure how I can do that because I haven't take a look at WorldEdit API yet.
Another thing to keep in mind is that I might not be able to do your mod idea at all, as I'm quite busy nowadays.