Wishlist/Rotary Dialer
From Openmoko
(Difference between revisions)
m |
|||
Line 4: | Line 4: | ||
pseudo-code: | pseudo-code: | ||
− | + | if(release > init){ | |
− | if((init - release - 1) <= 0){ | + | value = null; // no backward dialing |
− | value = null; | + | }elseif((init - release - 1) <= 0){ |
+ | value = null; // not enough mojo (moko?) in your stroke - try again. | ||
}elseif((init - release - 1) == 10){ | }elseif((init - release - 1) == 10){ | ||
− | value = 0; | + | value = 0; // necessary substitution |
}else{ | }else{ | ||
value = init - release - 1; | value = init - release - 1; |
Revision as of 00:33, 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 }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; }
with these area values:
- (num) = positional value (if different)
- black type = display value