Merge branch 'master' of https://github.com/emoon/rocket
Conflicts: ogl_editor/src/Editor.h test.rocket
This commit is contained in:
commit
7f4a5df823
@ -219,14 +219,17 @@ void Editor_update()
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void Editor_keyDown(int key)
|
||||
bool Editor_keyDown(int key)
|
||||
{
|
||||
bool handled_key = true;
|
||||
|
||||
//printf("callBack %d\n", key);
|
||||
|
||||
switch (key)
|
||||
{
|
||||
case EMGUI_ARROW_DOWN : start_pos++; break;
|
||||
case EMGUI_ARROW_UP : start_pos--; break;
|
||||
default : handled_key = false; break;
|
||||
}
|
||||
|
||||
if (start_pos < -19)
|
||||
@ -241,7 +244,11 @@ void Editor_keyDown(int key)
|
||||
|
||||
if (offset > s_testChannel.maxRange)
|
||||
s_testChannel.maxRange = offset;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return handled_key;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -70,10 +70,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
Editor_keyDown(keyCode);
|
||||
Editor_update();
|
||||
if (!Editor_keyDown(keyCode))
|
||||
[super keyDown:theEvent];
|
||||
|
||||
//[super keyDown:theEvent];
|
||||
Editor_update();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user