Open now works by pressing CTRL+O

This commit is contained in:
MusicalProgrammer
2018-10-30 19:14:17 -04:00
parent 8a097f7eb1
commit 08a3f9f307
3 changed files with 76 additions and 22 deletions

View File

@@ -814,7 +814,7 @@ void Demo::onInit() {
test->setSize(Vector3(4,1,2));
test->setPosition(Vector3(2,7,0));
#else
dataModel->load();
dataModel->debugGetOpen();
#endif
@@ -1430,6 +1430,13 @@ void Demo::onKeyPressed(int key)
{
deleteInstance();
}
if (GetHoldKeyState(VK_RCONTROL))
{
if (key=='O')
{
dataModel->getOpen();
}
}
#ifdef _DEBUG
if (key==VK_ADD)
{