Follow cam (#107)
- follow cam in replay viewer - world text with halo - fixed sensor crash - sensor visitors must now be convex
This commit is contained in:
parent
781673be80
commit
3fc20f5b45
27 changed files with 7450 additions and 127 deletions
|
|
@ -99,7 +99,6 @@ static void OnInit( void )
|
|||
#if defined( _WIN32 )
|
||||
timeBeginPeriod( 1 );
|
||||
#endif
|
||||
|
||||
const sg_environment env = sglue_environment();
|
||||
InitRenderer( &env );
|
||||
InitUI( &env, OnDrawUI );
|
||||
|
|
@ -214,11 +213,15 @@ static void OnEvent( const sapp_event* e )
|
|||
// Ctrl+O opens the fuzzy picker. Force the UI visible so it shows.
|
||||
s_context.showUI = true;
|
||||
s_context.openSamplePicker = true;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
s_context.singleStep += ( mods & SAPP_MODIFIER_SHIFT ) ? 5 : 1;
|
||||
}
|
||||
s_context.sample->Keyboard( e->key_code, ACTION_PRESS, mods );
|
||||
break;
|
||||
|
||||
// Step forward. Backward is , and only a sample that can rewind
|
||||
// handles it, so that key falls through to the sample.
|
||||
case KEY_PERIOD:
|
||||
s_context.singleStep += ( mods & SAPP_MODIFIER_SHIFT ) ? 5 : 1;
|
||||
break;
|
||||
|
||||
case SAPP_KEYCODE_P:
|
||||
|
|
|
|||
Loading…
Reference in a new issue