-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can one use stylus without AWT / JAVAFX? #3
Comments
This is the code I came up with for testing (it's the whole program):
I added stylus to the build.gradle.kts file but the program fails to start with this error:
Any suggestions to solve this? I'm on Linux, latest Idea & Gradle. |
I tried setting |
I was having the same problem, and got it working by copying both the stylus library as well as the stylus-jni library. I'm still struggling to get a simple example (like the one you have above) working though, so if you manage to get something like that working let me know |
My colleague showed me how to use the right dependencies:
With that I didn't need to build it myself and the library is found. Unfortunately also couldn't make it work. We get this error:
It looks like some method is not found. A JVM method called from C++ maybe? How does it fail in your case @Polian ? |
Yeah, that's the same error I'm getting. I dug around in the C++ a little, but I'm not familiar with this kind of code, and couldn't figure out what could be going wrong |
Hi,
I am trying to add support for graphic tablets to the OPENRNDR creative coding framework written in Kotlin. First I tried using https://github.com/nicarran/jpen but it's no longer under active development and I have issues making it work.
I was pointed to this repo and I'm very happy that there are packages I can use from Gradle.
Question: is it possible to use it without AWT or JAVAFX? OPENRNDR uses LWJGL which in turn uses GLFW. I do have access to window size, window position, pointer position and button states. What I'm missing is pressure and tilt.
Is the readme the only documentation available so far?
I see the included demos are rich in features and source code files. An idea for the future: include a minimal demo only showing how to read the state from the stylus. I think that would make it easier to understand how to integrate it in a project.
Thank you for writing and sharing your code.
The text was updated successfully, but these errors were encountered: