Padbangers
2015-06-01 21:15:39
Hi guys,
I read through a lot of topics but I'm terrible at programming and hope you guys can help me out.
I have some trouble setting up a variable as a modifier. I know how it works in theory but I can't translate it to the programming language.
So what I'm trying to do is give a button on my controller two functions depending of the condition of the modifier key.
So when I hold down the Shift button (a midi button, not on the keyboard) a variable should go to 1, when I toggle it again it should go back to 0.
Depending on the state I should be able to programm other functions.
Now how do I have to write the condition and how does a "if then" function has to look like?
Thank you in advance!
I read through a lot of topics but I'm terrible at programming and hope you guys can help me out.
I have some trouble setting up a variable as a modifier. I know how it works in theory but I can't translate it to the programming language.
So what I'm trying to do is give a button on my controller two functions depending of the condition of the modifier key.
So when I hold down the Shift button (a midi button, not on the keyboard) a variable should go to 1, when I toggle it again it should go back to 0.
Depending on the state I should be able to programm other functions.
Now how do I have to write the condition and how does a "if then" function has to look like?
Thank you in advance!