2009-12-01, 01:20
Hi,
I have these two wheels that give 24 pulses for each rotation. I would like them to control volume and position respectively.
How would you do that with the current EventClient API?
Currently I'm sending a button press + button release event for each pulse, with a volumeplus or volumeminus command depending on direction. But the volume does not change at the speed I want, so I would like to raise/lower it faster. I could do that by sending multiple events, but it does not seem right. Also, if the user is rotating the wheel really fast I might get multiple pulses for reading, and thus would have to send even more events.
I've been looking at the "amount" parameter of SendButton, but I'm not sure how to use it. I've used the BTN_USE_AMOUNT and experimented with different values for amount, but the speed stays the same.
I have these two wheels that give 24 pulses for each rotation. I would like them to control volume and position respectively.
How would you do that with the current EventClient API?
Currently I'm sending a button press + button release event for each pulse, with a volumeplus or volumeminus command depending on direction. But the volume does not change at the speed I want, so I would like to raise/lower it faster. I could do that by sending multiple events, but it does not seem right. Also, if the user is rotating the wheel really fast I might get multiple pulses for reading, and thus would have to send even more events.
I've been looking at the "amount" parameter of SendButton, but I'm not sure how to use it. I've used the BTN_USE_AMOUNT and experimented with different values for amount, but the speed stays the same.