View Single Post
Old 02-16-2019, 08:14 AM   #403
WyattRice
Human being with feelings
 
WyattRice's Avatar
 
Join Date: Sep 2009
Location: Virginia
Posts: 2,067
Default

Quote:
Originally Posted by trigger303 View Post
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
__________________
DDP To Cue Writer. | DDP Marker Editor.
WyattRice is offline   Reply With Quote