DISPLAX Connect - used to configure the touch controller and to communicate via TUIO
displaxtuio2mouse - This software will receive the touch events sent by DISPLAX Connect and inject them into the operating system
executedisplaxtuio - This software is an editable script (saved as an application) used to fix the offset of the touch and to launch the displaxtuio2mouse at login (you can change the offset editing it in the Automator app)
Download the "DisplaxTuioToMouse" folder from here to a Windows or Ubuntu computer and paste it into the macOS Applications folder "/Applications/" - you can't download it directly in macOS
Automator - Present in all versions of macOS, used to automate the execution of the "displaxtuio2mouse" app when the computer logs into the chosen account
Install DISPLAX Connect
Open macOS System Preferences
Click on Security & Privacy
Click the lock to make changes (bottom left corner)
Enter the Mac login password
Under Allow apps downloaded from: Select App Store and identified developers to finish the installation successfully
Launch DISPLAX Connect
Accept the pop-ups to change firewall settings, or you can also turn it OFF
Calibrate the touch sensor (more details here)
Start a TUIO communication from within DISPLAX Connect: IP: 127.0.0.1 PORT: 3333 - click here to see how (this is important because the software that will receive the touch events is waiting on port 3333); or from Terminal:
"/Applications/Displax/DisplaxConnect.app/Contents/MacOS/displaxservice --tuio start 127.0.0.1:3333"
Download the DisplaxTuioToMouse folder to a Windows or Ubuntu machine, then copy and paste it into the macOS Applications folder: "/Applications/" - you can't download it directly in macOS
Launch displaxtuio2mouse - (if the app does not open, launch terminal in the displaxtuio2mouse folder, then run "sudo chmod 777 ./displaxtuio2mouse" - this will give the rights you need to run
the app. After this you can run "./displaxtuio2mouse" or click on the app icon.
Touch the sensor, it will trigger a pop-up asking to give permission in Accessibility (System Preferences, Security & Privacy, Privacy). Open it, click on the lock to make changes, Select Accessibility in the left pane, add "Terminal" by clicking the Plus "+" symbol, and select the checkbox next to it.
Check for any offset of the touch accuracy. If the touch is accurate, move to step 7
If the touch is not accurate, follow these steps:
Close the displaxtuio2mouse app by clicking on Cmd + C
Run "/Applications/DisplaxTuioToMouse/displaxtuio2mouse -h"
Check the Help and try to move with the arguments "-x", "-y", etc... to find the best accuracy.
Example: "/Applications/DisplaxTuioToMouse/displaxtuio2mouse -x -14 -y +20 --x-flip --y-flip -r 5"
Copy the adjusted command and exit Terminal.
Edit the "executedisplaxtuio" app to launch the "displaxtuio2mouse" app with the offset arguments if created in step 6, as follows:
Launch Automator
Navigate to Applications and double click on Displax Tuio to Mouse folder
Select the "executedisplaxtuio" app and click Open
Add the adjusted command to the shell script. The final text should appear like this:
Press cmd + s to save
Quit Automator
Go to "/Applications/DisplaxTuioToMouse" folder and launch executedisplaxtuio
Touch the sensor
A pop-up will appear, click on Open settings
Unlock the lock - it will open in System Preferences, Security & Privacy, Privacy. With Accessibility selected in the left pane, add executedisplaxtuio, and select the checkbox. The touch should work as it was adjusted.
Go to the previous page in System Preferences, select Users and Groups
Click on the current user
Select the "Login Items" tab that appears at the top
Click the Plus "+" button, add the "executedisplaxtuio" app, and select the checkbox
Click on the button "Login Options" under the users
In "Automatic Login", set the user who will have Touch enabled (touch will be enabled
right after this user logs in).