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; }
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; }
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; }
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); }
public void SetPrevState(LTouchLocationState value_ren) { previousState = value_ren; }