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