add Stan Melax' ImplicitCloth demo

This commit is contained in:
Erwin Coumans
2015-04-30 13:36:39 -07:00
parent 49a71a9296
commit 9d3f8803b8
15 changed files with 2949 additions and 6 deletions

View File

@@ -80,15 +80,17 @@ void MyKeyboardCallback(int key, int state)
//printf("key=%d, state=%d\n", key, state);
bool handled = false;
if (gui && !handled )
{
handled = gui->keyboardCallback(key, state);
}
if (!handled && sCurrentDemo)
{
handled = sCurrentDemo->keyboardCallback(key,state);
}
if (gui && !handled )
{
handled = gui->keyboardCallback(key, state);
}
//checkout: is it desired to ignore keys, if the demo already handles them?