Esempio n. 1
0
    /// <summary>
    /// Gets the touch up.
    /// </summary>
    /// <returns><c>true</c>, if touch up was gotten, <c>false</c> otherwise.</returns>
    /// <param name="id">Identifier.</param>
    //---------------------------------------------------------------------------------------------
    public bool GetTouchUp(svrControllerTouch touch)
    {
        int mask = (int)touch;

        return(((previousTouchState & mask) != 0) && ((currentState.isTouching & mask) == 0));
    }
Esempio n. 2
0
    /// <summary>
    /// Determines whether this instance is touching the specified id.
    /// </summary>
    /// <returns><c>true</c> if this instance is touching the specified id; otherwise, <c>false</c>.</returns>
    /// <param name="id">Identifier.</param>
    //---------------------------------------------------------------------------------------------
    public bool GetTouch(svrControllerTouch touch)
    {
        int mask = (int)touch;

        return((currentState.isTouching & mask) != 0);
    }