- Joined
- Nov 13, 2005
- Messages
- 696
- Reaction score
- 13
- Trophies
- 1
- Age
- 38
- Website
- www.nintendo-gamers.net
- XP
- 435
- Country

I'm working on a MIDI application for the DS, and a Midi CC is sent when the screen is pressed, and another one when it's released. The only problem is that it's not sent all the time when it's released... And since I have to send only one message at the moment it's released, I can't send the message anytime the stylus isn't pressed. I've tried a lot of thing and I can't figure out why it's not working. Here's what I did :
if (Stylus.Newpress or Stylus.Held)
Send MIDI_CC 127
was_held = 1
else
if (was_held == 1 or Stylus.Released)
Send MIDI_CC 0
was_held = 0
if (Stylus.Newpress or Stylus.Held)
Send MIDI_CC 127
was_held = 1
else
if (was_held == 1 or Stylus.Released)
Send MIDI_CC 0
was_held = 0







