function normalizeSingleTouches(ev, type) {
  let all = toArray(ev.touches);
  let changed = toArray(ev.changedTouches);

  if (type & (INPUT_END | INPUT_CANCEL)) {
    all = uniqueArray(all.concat(changed), 'identifier', true);
  }

  return [all, changed];
}
@private
@this {TouchInput}
@param {Object} ev
@param {Number} type flag
@returns {undefined|Array} [all, changed]