Application Examples

Application Examples

Node.js Scripts and C++ Console Program Examples

DISPLAX provides example programs and scripts for developers who want to integrate TUIO events into their applications. These examples help test touch and object recognition events coming from DISPLAX sensors via TUIO protocol.


Node.js Scripts

Requirements

Setup Instructions

  1. Install Node.js and reboot your computer.

  2. Open Command Prompt (Windows) or Terminal (Ubuntu/macOS).

  3. Install the OSC package:

    npm install osc
  4. Run one of the following scripts:

    • For TUIO 1.1node dpx-tuio-1.js

    • For TUIO 2.0node dpx-tuio-2.js

📥 Download Node.js Scripts here.


C++ Console Program Example

Requirements

  • Windows OS (for precompiled binary)

  • Or Qt Creator / other IDE for compiling on Linux/macOS

Instructions

  1. Download and extract the program files.

  2. Run QtTUIODemo.exe (Windows).

    • This program outputs Touch and Object events from TUIO 1.1.

📥 Download Windows program here 
📥 Download source code (Qt Creator project) here


Other Implementations

For additional programming languages, source code, and TUIO implementations, visit:
👉 TUIO Official Website