mObserver( observer ),
mState( Clear ),
mThresholdAdjustmentsRemaining( 0 ),
- mThresholdTotalAdjustments( MINIMUM_MOTION_DISTANCE_BEFORE_PAN * MINIMUM_MOTION_DISTANCE_TO_THRESHOLD_ADJUSTMENTS_RATIO ),
+ mThresholdTotalAdjustments( static_cast<unsigned int>( MINIMUM_MOTION_DISTANCE_BEFORE_PAN * MINIMUM_MOTION_DISTANCE_TO_THRESHOLD_ADJUSTMENTS_RATIO ) ),
mPrimaryTouchDownTime( 0 ),
mMinimumTouchesRequired( request.minTouches ),
mMaximumTouchesRequired( request.maxTouches ),
- mMinimumDistanceSquared( MINIMUM_MOTION_DISTANCE_BEFORE_PAN_SQUARED ),
+ mMinimumDistanceSquared( static_cast<unsigned int>( MINIMUM_MOTION_DISTANCE_BEFORE_PAN_SQUARED ) ),
mMinimumMotionEvents( MINIMUM_MOTION_EVENTS_BEFORE_PAN ),
mMotionEvents( 0 )
{
else if (pointState == PointState::DOWN)
{
const Vector2& screen( point.GetScreenPosition() );
- Vector2 distanceDelta(abs(mTouchPosition.x - screen.x),
- abs(mTouchPosition.y - screen.y));
+ Vector2 distanceDelta(std::abs(mTouchPosition.x - screen.x),
+ std::abs(mTouchPosition.y - screen.y));
uint32_t timeDelta = event.time - mLastTapTime;
{
TapGestureEvent event( Gesture::Started );
const Vector2& screen( point.GetScreenPosition() );
- Vector2 distanceDelta(abs(mTouchPosition.x - screen.x),
- abs(mTouchPosition.y - screen.y));
+ Vector2 distanceDelta(std::abs(mTouchPosition.x - screen.x),
+ std::abs(mTouchPosition.y - screen.y));
if (distanceDelta.x > MAXIMUM_MOTION_ALLOWED ||
distanceDelta.y > MAXIMUM_MOTION_ALLOWED )