Quote:
Originally Posted by trigger303
Hi all,
I want to programmatically add keyboard shortcut to certain action,
but it seems that there's no such a function in reaper_plugin_functions.h.
Previously I thought there's a function like this :
bool AddActionShortcut( KbdSectionInfo* section, int cmdID, char* desc, int desclen );
but unfortunately it doesn't exists.
Is there a way to do that ?
Many thanks in advance.
|
I think it's in Reaper extra API in the header "reaper_plugin.h" and not the "reaper_plugin_funtions.h"
Here's an example from an extension.
Code:
gaccel_register_t editMarkersAccelerator = {
{FCONTROL | FALT | FVIRTKEY, 'D', 0},
editMarkersAction,
};
There is also an example from the older Reaper extension sdk in the reaper_ninjamloop example.
Here's the link.
https://www.reaper.fm/sdk/plugin/plugin.php
Hope this helps.
Regards,
Wyatt