-
Notifications
You must be signed in to change notification settings - Fork 2
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
double click on GUI w. touchscreen #11
Comments
@delaneyheileman - Sounds like you may have already seen this, but there's another library (alternative to Looks like this is an unresolved issue for |
Still working on this - recompiling .java file this week and trying that fix |
Its finally working!! Changes pushed to touchscreen branch - we can talk about merging to master soon. The touchscreen functionality is working now but the colors of the buttons are not changing as they should (they look like they are selected when they are not). I will make that a new issue. |
Adding some documentation for how this bug was fixed/ how to generally compile a java library properly. Touch screen fix/ updating a processing library:Some background information: So what is a .jar file? It's the java equivalent of a ZIP file. When a library src folder is compiled it makes a .jar file, aggregating all of the information from the various files into the source folder into one .jar file that Processing uses. Why is this important? Well, let's say you want to make a change to a specific library. You modify a file in the src folder. You think you are done but when you run the code again, nothing changes. This is because you just changed one file, you didn’t recompile the .jar, so processing is still using a .jar file that doesn’t have your new changes taken into account. What is convenient about this is that you can share .jar files with people, so once you make your library fix you can pass on your properly compiled .jar file to those on your team. Easy peasy. Okay so I need to recompile my .jar file once I make a change? Yes! And I do that. . . how? So glad you asked. This is where things get a bit tricky because you will need to make changes based on your environment. 1. Make any changes you wish to your respective library.
2. Find the core.jar file the comes with Processing and make a note of its path/copy the path into a note for later use. Bellow are the steps I followed on a Mac computer.
3. Now open a terminal and navigate to the src folder of the library you are changing.
*4. Run javac -cp CORE_DOT_JAR_PATH/core.jar -d . --target 8 --source 8 .java
Touch screen only: set isTouch to true |
@SeanPluemer see above documentation, this might help you with compiling the library you changed. |
currently, you need to click twice to make anything happen with the touch screen GUI
The text was updated successfully, but these errors were encountered: