Skip to content
This repository
Browse code

update casting for 10.6 usage of Keyboard UGens

  • Loading branch information...
commit 1ffa97e8258f93a0a0d218fc1785c4b149d15163 1 parent 2682031
Joshua Parmenter authored

Showing 1 changed file with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +17 0 common/Source/plugins/KeyboardUGens.cpp
17 common/Source/plugins/KeyboardUGens.cpp
@@ -61,6 +61,21 @@ extern "C"
61 61 //////////////////////////////////////////////////////////////////////////////////////////////////
62 62
63 63 #if SC_DARWIN
  64 +# if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1050)
  65 +
  66 +void* gstate_update_func(void* arg)
  67 +{
  68 + KeyboardUGenGlobalState* gstate = &gKeyStateGlobals;
  69 + for (;;) {
  70 + Point p;
  71 + GetKeys((BigEndianUInt32*)gstate->keys);
  72 + usleep(17000);
  73 + }
  74 +
  75 + return 0;
  76 +}
  77 +
  78 +#else
64 79
65 80 void* gstate_update_func(void* arg)
66 81 {
@@ -74,6 +89,8 @@ void* gstate_update_func(void* arg)
74 89 return 0;
75 90 }
76 91
  92 +#endif
  93 +
77 94 #elif defined(SC_WIN32)
78 95
79 96 void* gstate_update_func(void* arg)

0 comments on commit 1ffa97e

Please sign in to comment.
Something went wrong with that request. Please try again.