View Single Post
Old 11-15-2019, 02:21 AM   #1
renzoruggieri.com
Human being with feelings
 
Join Date: Oct 2019
Location: Roseto degli Abruzzi (TE, Italy)
Posts: 9
Default IActionFunction, call from code...

Ciao to everybody

I call the following listener from a IVButtonControl:

auto RESETact = [&](IControl* pCaller) {
SplashClickActionFunc(pCaller);
IMidiMsg m;
for (int i = 0; i < 6; i++) {
m.mStatus = 0xB0 + i; m.mData1 = 121; m.mData2 = 0; SendMidiMsgFromUI(m);
m.mData1 = 123; SendMidiMsgFromUI(m);
}
};


My question is: how I can call it from code, for example when key pressed???
Folowing code NOT WORKS...

if (key.VK == 49 && isUp) { RESETact(); }


Thank you very much
R
renzoruggieri.com is offline   Reply With Quote