Example #1
0
 public LTouchLocation(int aId, LTouchLocationState aState, float x, float y)
 {
     id               = aId;
     position         = new Vector2f(x, y);
     previousPosition = Vector2f.ZERO();
     state            = aState;
     previousState    = LTouchLocationState.Invalid;
     pressure         = 0.0f;
     previousPressure = 0.0f;
 }
Example #2
0
 public LTouchLocation(int aId, LTouchLocationState aState,
                       Vector2f aPosition, float aPressure)
 {
     id               = aId;
     position         = aPosition;
     previousPosition = Vector2f.ZERO();
     state            = aState;
     previousState    = LTouchLocationState.Invalid;
     pressure         = aPressure;
     previousPressure = 0.0f;
 }
Example #3
0
 public LTouchLocation(int aId, LTouchLocationState aState,
                       Vector2f aPosition, LTouchLocationState aPreviousState,
                       Vector2f aPreviousPosition)
 {
     id               = aId;
     position         = aPosition;
     previousPosition = aPreviousPosition;
     state            = aState;
     previousState    = aPreviousState;
     pressure         = 0.0f;
     previousPressure = 0.0f;
 }
Example #4
0
        public void Update(int id, LTouchLocationState state,
                           Vector2f position)
        {
            if (state == LTouchLocationState.Pressed)
            {
                throw new ArgumentException(
                          "Argument 'state' cannot be TouchLocationState.Pressed.");
            }

            for (int i = 0; i < Count; i++)
            {
                if (this[i].id == id)
                {
                    LTouchLocation touchLocation = this[i];
                    touchLocation.SetPosition(position);
                    touchLocation.SetState(state);
                    this[i] = touchLocation;
                    return;
                }
            }
            CollectionUtils.Clear(this);
        }
Example #5
0
		public LTouchLocation(int aId, LTouchLocationState aState,
				Vector2f aPosition, LTouchLocationState aPreviousState,
				Vector2f aPreviousPosition) {
			id = aId;
			position = aPosition;
			previousPosition = aPreviousPosition;
			state = aState;
			previousState = aPreviousState;
			pressure = 0.0f;
			previousPressure = 0.0f;
		}
Example #6
0
		public void SetPrevState(LTouchLocationState value_ren) {
			previousState = value_ren;
		}
Example #7
0
		public LTouchLocation(int aId, LTouchLocationState aState,
				Vector2f aPosition, float aPressure) {
			id = aId;
			position = aPosition;
			previousPosition = Vector2f.ZERO();
			state = aState;
			previousState = LTouchLocationState.Invalid;
			pressure = aPressure;
			previousPressure = 0.0f;
		}
Example #8
0
		public LTouchLocation(int aId, LTouchLocationState aState, float x, float y) {
			id = aId;
			position = new Vector2f(x, y);
			previousPosition = Vector2f.ZERO();
			state = aState;
			previousState = LTouchLocationState.Invalid;
			pressure = 0.0f;
			previousPressure = 0.0f;
		}
Example #9
0
 public void SetPrevState(LTouchLocationState value_ren)
 {
     previousState = value_ren;
 }