2008-11-09, 23:09
Awesome, got the volume control working.
One thing i'm noticing though, the calculations are absolute, not relative. And by that I mean, it doesn't calculate my roll relative to where i started presing B, but rather it's always relative to the flat/unrotated position. Do you know what I mean? Sorry if i'm explaining it poorly.
It wouldn't be too difficult to add a way to do these calculations differently. The first time we realize the HOLD_BUTTON_TIMEOUT threshold has been crossed, you could get the current roll value, then subsequent entries to handleACC would calculate the difference between the current roll value and the original roll value and pass that onto the EventClient.
Thoughts? I'll try coding this up to if it works as well as I think it will.
One thing i'm noticing though, the calculations are absolute, not relative. And by that I mean, it doesn't calculate my roll relative to where i started presing B, but rather it's always relative to the flat/unrotated position. Do you know what I mean? Sorry if i'm explaining it poorly.
It wouldn't be too difficult to add a way to do these calculations differently. The first time we realize the HOLD_BUTTON_TIMEOUT threshold has been crossed, you could get the current roll value, then subsequent entries to handleACC would calculate the difference between the current roll value and the original roll value and pass that onto the EventClient.
Thoughts? I'll try coding this up to if it works as well as I think it will.