Commit 937f4ca5 authored by simon's avatar simon
Browse files

comment

parent e87ea109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ uses go channels to pipe around events, for flexibility and multi-threading.

make event channels from methods on HID type.  'HID.On***()'  

also some higher-level UI abstractions to help standard usage.
also some higher-level event modifiers for common UI abstractions, to help standard usage.

Overview/docs: [![GoDoc](https://godoc.org/github.com/splace/joysticks?status.svg)](https://godoc.org/github.com/splace/joysticks)

+2 −1
Original line number Diff line number Diff line
@@ -272,7 +272,8 @@ func Duplicator(c chan Event)(chan Event,chan Event){
	return c1,c2
}

// does nothing if parameter chan doesn't give CoordsEvent's

// creates a chan on which are CoordsEvent's that are the time integration of CoordsEvent's on the parameter chan. 
func PositionFromVelocity(c chan Event) chan Event{
	extra := make(chan Event)
	var x,y,vx,vy float32