Add ZZC plugins
This commit is contained in:
parent
b1ce729dba
commit
4682417dbd
7 changed files with 64 additions and 1 deletions
|
|
@ -41,6 +41,15 @@ GLFWAPI const char* glfwGetClipboardString(GLFWwindow*) { return nullptr; }
|
|||
GLFWAPI void glfwSetClipboardString(GLFWwindow*, const char*) {}
|
||||
GLFWAPI int glfwGetKeyScancode(int) { return 0; }
|
||||
|
||||
GLFWAPI double glfwGetTime(void)
|
||||
{
|
||||
CardinalPluginContext* const context = static_cast<CardinalPluginContext*>(APP);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(context != nullptr, 0.0);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(context->ui != nullptr, 0.0);
|
||||
|
||||
return context->ui->getApp().getTime();
|
||||
}
|
||||
|
||||
GLFWAPI const char* glfwGetKeyName(const int key, int)
|
||||
{
|
||||
switch (key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue