Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 11-15-2019, 02:21 AM   #1
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) {
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 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 02:48 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.