Skip to content
Arthur Nishimoto edited this page Apr 27, 2017 · 3 revisions

Uses the PQLabs API to connect and receive touch data from a PQLabs server (MultiTouchPlatform). Can be combined with the GestureManager to generate more accurate touch point events as well as basic multi-touch gestures like pan and zoom.

Generated events

  • Service type: Pointer
  • Event types: Down, Move, Up
  • Event data fields: position, extra data (float array) for touch width and height.

Configuration parameters

  • serverIP (string): the name or IP address of the PQLabs Multitouch Platform server (default: 127.0.0.1)
  • normalizeData (bool): normalize the outgoing touch data. (default: true)
  • touchOffset (Vector2i): pixel value to offset touch data. (default: [0, 0])
  • maxBlobSize (int): the largest pixel diameter of touches to be reported (default: 1000)
  • rawDataResolution (Vector2i): set the raw touch data resolution. (default: screen resolution of PQLabs server)
  • useGestureManager (bool): toggle the Gesture Manager. (default: false)
  • debug (bool): toggle debug console text. (default: false)
  • debugRawPQInfo (bool): toggle debug console text specific to raw PQLabs touch point data. (default: false)
  • showStreamSpeed(bool): toggle debug console text specific showing how many touch points per second are being received. (default: false)

Basic PQLabs Configuration File

config:
{
    // Listening port for Omicron clients
    serverPort = "28000";

    services:
    {
        PQService:
        {
            serverIP = "127.0.0.1";
            
            normalizeData = true;
            touchOffset = [0, 0];
            
            maxBlobSize = 1001;

            debug = true;
            debugRawPQInfo = false;
            showStreamSpeed = false;
                
            useGestureManager = false;
        };
    };
};
Clone this wiki locally