Пример #1
0
// TODO: set by deviceid
func (tpad *Touchpad) motionThreshold(thres float64) {
	for _, info := range tpad.DeviceList {
		wrapper.SetMotionThreshold(info.Deviceid, thres)
	}
}
Пример #2
0
func (m *Mouse) motionThreshold(thres float64) {
	for _, info := range m.DeviceList {
		wrapper.SetMotionThreshold(info.Deviceid, thres)
	}
}