Skip to content

Commit

Permalink
update casting for 10.6 usage of Keyboard UGens
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Parmenter committed Feb 28, 2010
1 parent 2682031 commit 1ffa97e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions common/Source/plugins/KeyboardUGens.cpp
Expand Up @@ -61,6 +61,21 @@ extern "C"
//////////////////////////////////////////////////////////////////////////////////////////////////

#if SC_DARWIN
# if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1050)

void* gstate_update_func(void* arg)
{
KeyboardUGenGlobalState* gstate = &gKeyStateGlobals;
for (;;) {
Point p;
GetKeys((BigEndianUInt32*)gstate->keys);
usleep(17000);
}

return 0;
}

#else

void* gstate_update_func(void* arg)
{
Expand All @@ -74,6 +89,8 @@ void* gstate_update_func(void* arg)
return 0;
}

#endif

#elif defined(SC_WIN32)

void* gstate_update_func(void* arg)
Expand Down

0 comments on commit 1ffa97e

Please sign in to comment.