Example #1
0
func updateTouches() {
	ts := []ui.Touch{}
	for id, position := range touches {
		ts = append(ts, touch{id, position})
	}
	ui.UpdateTouches(ts)
}
Example #2
0
func (e *eventDispatcher) updateTouches() {
	ts := []ui.Touch{}
	for id, position := range e.touches {
		ts = append(ts, touch{id, position})
	}
	ui.UpdateTouches(ts)
}