void _board_maker_open(void)
{
+ if( vg_input.display_input_method == k_input_method_controller )
+ {
+ static bool hack = 0;
+ hack ^= 0x1;
+
+ if( hack )
+ gui_location_print_ccmd( 1, (const char *[]){ KRED "Must be using keyboard/mouse to access." } );
+ else
+ gui_location_print_ccmd( 1, (const char *[]){ KRED "Must be using keyboard/mouse to access. " } );
+ return;
+ }
+
+ if( !world_set_event( k_world_event_board_maker ) )
+ return;
+
VG_ASSERT( _board_maker.state == k_board_maker_state_not_ready );
VG_ASSERT( _board_maker.static_heap == NULL );
VG_ASSERT( _board_maker.template_heap == NULL );
}
ent_list *list = af_arritm( &world->ent_list, mdl_entity_id_id(list_id) );
- if( world_set_event( k_world_event_board_maker ) )
+ struct ent_list_iter iter;
+ _ent_list_iter_start( &iter, list, k_ent_marker );
+ while( _ent_list_iter( &iter ) )
{
- struct ent_list_iter iter;
- _ent_list_iter_start( &iter, list, k_ent_marker );
- while( _ent_list_iter( &iter ) )
- {
- ent_marker *marker = af_arritm( &world->ent_marker, iter.index );
- const char *alias = af_str( &world->meta.af, marker->pstr_alias );
+ ent_marker *marker = af_arritm( &world->ent_marker, iter.index );
+ const char *alias = af_str( &world->meta.af, marker->pstr_alias );
- if( !strcmp( alias, "$board_position" ) )
- v3_copy( marker->transform.co, _board_maker.origin );
- else if( !strcmp( alias, "$camera_position" ) )
- v3_copy( marker->transform.co, _board_maker.camera_pos );
- }
- _board_maker_open();
+ if( !strcmp( alias, "$board_position" ) )
+ v3_copy( marker->transform.co, _board_maker.origin );
+ else if( !strcmp( alias, "$camera_position" ) )
+ v3_copy( marker->transform.co, _board_maker.camera_pos );
}
+
+ _board_maker_open();
}
}
}