Hi Eric:
Yes, you can absolutely use a switch to select between modes or input states. You would connect the switch to an input pin, and when a button is pressed you would read that switch to determine how to respond. We just updated the reference section to include these types of commands but (strangely) this one didn't make it in (we'll add it soon). The command looks like this: Pn?[x x x x]:label1
So if your switch was connected to Pin P2.2, your code would look like this:
& P2?[x 1 x x]:this_label
& P2?[x 0 x x]:that_label
One terminal of the switch should be connected to Vcc and the other terminal to the input pin. Basically, you're looking at that one pin and making a decision. The 'x' is used to ignore a pin that you don't want to include.
As for your other question, we tend to think of Foxonix using a low-to-high transition, but it can also trigger on a high-to-low transition, or both. Using the simple_SFX_trigger example that you mentioned, the "enabled" input state is set up so that the inputs will trigger on a low-to-high transition:
If you want to change this so that button1 triggers on a high-to-low transition, then you put a "/" in front, like so:
enabled: /button1 button2
If you want button1 to trigger on BOTH a low-to-high and a high-to-low transition, then you set it up like this:
enabled: button1/button1 button2