create premake/cmake file for Bullet/Extras/obj2sdf
add missing 1.sdf for Bullet/data/kitchens/1.sdf add support for getting keyboard events (pybullet.getKeyboardEvents and b3RobotSimulatorClientAPI::getKeyboardEvents)
This commit is contained in:
@@ -181,10 +181,12 @@ void MyKeyboardCallback(int key, int state)
|
||||
|
||||
//b3Printf("key=%d, state=%d", key, state);
|
||||
bool handled = false;
|
||||
|
||||
if (gui2 && !handled )
|
||||
if (renderGui)
|
||||
{
|
||||
handled = gui2->keyboardCallback(key, state);
|
||||
if (gui2 && !handled )
|
||||
{
|
||||
handled = gui2->keyboardCallback(key, state);
|
||||
}
|
||||
}
|
||||
|
||||
if (!handled && sCurrentDemo)
|
||||
|
||||
Reference in New Issue
Block a user