Wishlist/Rotary Dialer
From Openmoko
(Difference between revisions)
m |
m |
||
Line 5: | Line 5: | ||
pseudo-code: | pseudo-code: | ||
if(release > init){ | if(release > init){ | ||
− | value = null; // no backward dialing | + | value = null; // no backward dialing or dialing past the fingerstop |
}elseif((init - release - 1) <= 0){ | }elseif((init - release - 1) <= 0){ | ||
value = null; // not enough mojo (moko?) in your stroke - try again. | value = null; // not enough mojo (moko?) in your stroke - try again. |
Revision as of 19:53, 18 September 2007
So, this is mainly a joke, but it would be an interesting dispay app for the capabilities of the touchscreen environment and is a departure from the standard 'mouse' behavior of most touchscreens.
pseudo-code:
if(release > init){ value = null; // no backward dialing or dialing past the fingerstop }elseif((init - release - 1) <= 0){ value = null; // not enough mojo (moko?) in your stroke - try again. }elseif((init - release - 1) == 10){ value = 0; // necessary substitution }else{ value = init - release - 1; // allows for old-school dialing, where it didn't // actually matter where your finger was - it only mattered how much it moved. }
with these area values:
- black type = display value
- (num) = positional value (if different)
It would be really cool (tm) if it moved under your finger and snapped back after you released.