Exemple #1
0
        // -------------------
        override public bool OnTouchPressureChange(TouchObject touch)
        {
            if ((touch != this.touchObj) || (this.touchObj == null))
            {
                return(false);
            }


            this.touchStateWorld.OnTouchPressureChange(touch.GetPressure());
            this.touchStateScreen.OnTouchPressureChange(touch.GetPressure());
            this.touchStateOriented.OnTouchPressureChange(touch.GetPressure());

            return(true);
        }
Exemple #2
0
        // -------------------
        override public bool OnTouchPressureChange(TouchObject touchObj)
        {
            if ((this.touchObj == null) || (this.touchObj != touchObj))
            {
                return(false);
            }

            this.touchState.OnTouchPressureChange(touchObj.GetPressure());

            return(true);
        }