// OnTouchMove is called when Title scene is Touched and moved.
// It is caused by calling AddtouchListener for e.gopher sprite.
188173
func (s *sample) OnTouchMove(x, y float32) {
	s.gopher.SetPosition(x, y)
}
920411
func (t *Title) OnTouchEnd(x, y float32) {
	if t.isAnimating {
		t.effect.StopAnimation()
		t.isAnimating = false
	} else {
		shouldLoop := true
		t.effect.StartAnimation("animation test", shouldLoop, func() {
			t.effect.ReplaceTexture(t.initialSprite)
		})
		t.isAnimating = true
	}
}
487416
func NewTrackToRemove(trackID string, positions []int) TrackToRemove {
	return TrackToRemove{
		URI:       fmt.Sprintf("spotify:track:%s", trackID),
		Positions: positions,
	}
}
1027028
func (s SimpleHeart) touch() {
	if err := s.strategy.Touch(s.Location, s.ID, s.pool); err != nil {
		s.errs <- err
	}
}
231307
func MovedPermanently(w http.ResponseWriter, response interface{}) {
	Respond(w, http.StatusMovedPermanently, response)
}
956121
func (tp *TouchPeer) RemoveTouchListener(listener TouchListener) {
	simlog.FuncIn()
	tp.touchListeners = remove(tp.touchListeners, listener)
	simlog.FuncOut()
}
968882
func (w *Window) JoystickJustPressed(js Joystick, button int) bool {
	return w.currJoy.getButton(js, button) && !w.prevJoy.getButton(js, button)
}
521196
func (l *ByteIntervalList) MoveToFront(e *ByteIntervalElement) {
	if e.list != l || l.root.next == e {
		return
	}
	// see comment in List.Remove about initialization of l
	l.insert(l.remove(e), &l.root)
}
370988
func moveRedRight(h *Node) *Node {
	flip(h)
	if isRed(h.Left.Left) {
		h = rotateRight(h)
		flip(h)
	}
	return h
}
220810
func (s *ServoDriver) Move(angle uint8) (err error) {
	if !(angle >= 0 && angle <= 180) {
		return ErrServoOutOfRange
	}
	s.CurrentAngle = angle
	return s.connection.ServoWrite(s.Pin(), angle)
}
424243
func (m *Meta) touch(ptr interface{}) {
	if m.touched == nil {
		m.touched = make(map[interface{}]struct{}, 1)
	}
	m.touched[ptr] = struct{}{}
}
1091016
func (t *Tab) MoveMouse(x, y float64) error {
	mouseMovedParams := &gcdapi.InputDispatchMouseEventParams{TheType: "mouseMoved",
		X: x,
		Y: y,
	}

	_, err := t.Input.DispatchMouseEventWithParams(mouseMovedParams)
	return err
}
558854
func (m *Mutex) Touch() bool {
	m.nodem.Lock()
	defer m.nodem.Unlock()

	value := m.value
	if value == "" {
		panic("redsync: touch of unlocked mutex")
	}

	expiry := m.Expiry
	if expiry == 0 {
		expiry = DefaultExpiry
	}
	reset := int(expiry / time.Millisecond)

	n := 0
	for _, node := range m.nodes {
		if node == nil {
			continue
		}

		conn := node.Get()
		reply, err := touchScript.Do(conn, m.Name, value, reset)
		conn.Close()
		if err != nil {
			continue
		}
		if reply != "OK" {
			continue
		}
		n++
	}
	if n >= m.Quorum {
		return true
	}
	return false
}
295264
func (s *InstancesDistribution) SetOnDemandAllocationStrategy(v string) *InstancesDistribution {
	s.OnDemandAllocationStrategy = &v
	return s
}
909653
func (t *Title) OnTouchEnd(x, y float32) {
	t.spawnKokeshi(x, y)
}
986699
func (m *Meta) WasTouched(field string) bool {
	m.detectTouchedFlags()
	ptr, ok := m.fieldsMap()[field]
	if !ok {
		panic(fmt.Sprintf("no such meta field %s", field))
	}
	_, yes := m.touched[ptr]
	return yes
}
520986
func (h Handler) Touch(cmd common.TouchRequest) error {
	_, err := h.doRequest(cmd, common.RequestTouch)
	return err
}