Current status
This commit is contained in:
parent
706db2684c
commit
adc3b2b059
@ -216,14 +216,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)
|
||||
@ -238,7 +241,11 @@ void Editor_keyDown(int key)
|
||||
|
||||
if (offset > s_testChannel.maxRange)
|
||||
s_testChannel.maxRange = offset;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return handled_key;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -4,5 +4,5 @@ void Editor_create();
|
||||
void Editor_destroy();
|
||||
void Editor_init();
|
||||
void Editor_update();
|
||||
void Editor_keyDown(int keyCode);
|
||||
bool Editor_keyDown(int keyCode);
|
||||
|
||||
|
||||
@ -70,10 +70,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
Editor_keyDown(keyCode);
|
||||
Editor_update();
|
||||
if (!Editor_keyDown(keyCode))
|
||||
[super keyDown:theEvent];
|
||||
|
||||
//[super keyDown:theEvent];
|
||||
Editor_update();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
9
test.rocket
Executable file
9
test.rocket
Executable file
@ -0,0 +1,9 @@
|
||||
<tracks rows="128">
|
||||
<track name="intro_image">
|
||||
<key row="32" value="3.000000" interpolation="0"/>
|
||||
<key row="96" value="5.000000" interpolation="0"/>
|
||||
<key row="104" value="5.000000" interpolation="0"/>
|
||||
<key row="112" value="12346.000000" interpolation="0"/>
|
||||
<key row="115" value="12.000000" interpolation="0"/>
|
||||
</track>
|
||||
</tracks>
|
||||
Loading…
x
Reference in New Issue
Block a user