| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| Jul » | ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Posted on June 10th, 2007 by felix.
Categories: Release.
This program can detect if there is one or two styli on the touch screen.
Video
Taiko no Tatsujin DS will be released soon. In the arcade and PS2 versions, you hit the drum with one stick for small notes and both sticks for big notes. People kept on saying you can’t hit the DS with two styli, I wrote this to prove them wrong.
To use:
First, press hard on the touch screen using one stylus and push A once to calibrate the system. (You can also use up and down to manually calibrate it.)
Then try touching the screen with one or more styli.
if (Stylus.Held){
if (((touchX * touchZ2) / (64 * touchZ1) - touchX / 64) < threshold){
//two styli
}else{
//one stylus
}
}
This is probably a solution looking for a problem, can anyone think of a use for this code?
Thanks to DynamicStability.
0 comments.
Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.