multi function buttons?

okay i’m lost on this case - is it possible to configure buttons the way so that it - pressed once has one function - pressed a second time has another function and pressed a third time jumps back to zero ?

of course, you need to write a function in C to do it…

should be very easy

i was afraid you would use that term “write in c”… i guess i will have to learn it if i really want to achieve something…

Matrigs,

Not really an answer, but it’s been asked about at least. ;D

http://www.midibox.org/forum/index.php?topic=4503.0

There’s a second post linked in that one too. Never did get to messing with that. I asked about shift (modifier) keys too, and eventually got a sloppy version of that working, but I’m not sure if it was done right. :-\

George

BTW- I’m strictly assembler right now too.

it’s really really easy to do in C

using ifs or a switch

for example:

if (buttonPressNumber == 0) {

    //do whatever here

    buttonPressNumber++;

}

if (buttonPressNumber == 1) {

    //do whatever here

    buttonPressNumber++;

}

if (buttonPressNumber == 2) {

    //do whatever here

    buttonPressNumber=0;

}

i was afraid you would use that term “write in c”… i guess i will have to learn it if i really want to achieve something…

basically yes!

but, you don’t really need to code from scratch, there are so many bits of code about on the site you can cut and paste and edit - much easier and a great way to learn!

BTW- I’m strictly assembler right now too.

you are a braver man than I!

you are a braver man than I!

I like to consider myself a hard headed old fool. 8)

Assembler just happens to be what I started off with. If all the C wrapper stuff for the MIDIBox was as common then, I’d probably have gotten into that. It was coincidentally around the time I was trying to learn some anyway, but I’ve forgotten most of it now. ;D

George

PS- I barely get by with assembler, so throwing something else in the mix probably wouldn’t be the best idea right now.

whatever works for you!

Good luck with the assembler mission.

Let me know if I can help with any logic stuff, I’m sure there are lots of ppl on here who can guide you through the asm minefield…