Share via


KinectUIAdapter.hitTestHandler Function

Kinect for Windows 1.8

Callback function to call when an interaction stream needs information to adjust a hand pointer position relative to the UI.

Syntax

hitTestHandler(trackingId, handType, xPos, yPos);

Parameters

  • trackingId
    Type: Number

    The tracking ID of the skeleton for which interaction information is being retrieved.

  • handType
    Type: String

    Specifies "left" or "right" to represent the hand type for which interaction information is being retrieved.

  • xPos
    Type: Number

    The x-coordinate of location in the UI for which interaction information is being retrieved. A value of 0.0 corresponds to the left edge of the interaction region. A value of 1.0 corresponds to the right edge of the interaction region.

  • yPos
    Type: Number

    The y-coordinate of location in the UI for which interaction information is being retrieved. A value of 0.0 corresponds to the top edge of the interaction region. A value of 1.0 corresponds to the bottom edge of the interaction region.

Requirements

Library: Kinect-1.8.0.js

See Also

Reference

KinectUIAdapter Interface
UI Components