- menu.input_mode = k_menu_input_mode_keys;
- }
-
- /* get mouse inputs
- * --------------------------------------------------------------------*/
- menu.mouse_dist += v2_length( vg.mouse_delta ); /* TODO: Move to UI */
- if( menu.mouse_dist > 10.0f )
- {
- menu.input_mode = k_menu_input_mode_mouse;
- menu.mouse_dist = 0.0f;
- }
-
- if( ui_clicking(UI_MOUSE_LEFT) || ui_clicking(UI_MOUSE_RIGHT) )
- {
- menu.input_mode = k_menu_input_mode_mouse;
- }
-
- if( menu.input_mode == k_menu_input_mode_mouse )
- {
- /*
- * handle mouse input
- * ------------------------------------------------------------*/