Skip to content
Snippets Groups Projects
Commit ef0ff43a authored by MrGVSV's avatar MrGVSV
Browse files

Fixed compile errors

parent d185f2cd
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ fn startup( ...@@ -96,7 +96,7 @@ fn startup(
) { ) {
commands.spawn_bundle(UICameraBundle::new()); commands.spawn_bundle(UICameraBundle::new());
font_mapping.add(asset_server.load("roboto.kayak_font")); font_mapping.add("Roboto", asset_server.load("roboto.kayak_font"));
let theme = TabTheme { let theme = TabTheme {
primary: Default::default(), primary: Default::default(),
......
...@@ -48,7 +48,6 @@ impl EventDispatcher { ...@@ -48,7 +48,6 @@ impl EventDispatcher {
Self { Self {
last_clicked: Binding::new(Index::default()), last_clicked: Binding::new(Index::default()),
is_mouse_pressed: Default::default(), is_mouse_pressed: Default::default(),
current_focus: Default::default(),
current_mouse_position: Default::default(), current_mouse_position: Default::default(),
next_mouse_position: Default::default(), next_mouse_position: Default::default(),
previous_events: Default::default(), previous_events: Default::default(),
...@@ -151,7 +150,7 @@ impl EventDispatcher { ...@@ -151,7 +150,7 @@ impl EventDispatcher {
fn build_event_stream( fn build_event_stream(
&mut self, &mut self,
input_events: &[InputEvent], input_events: &[InputEvent],
widget_manager: &WidgetManager, widget_manager: &mut WidgetManager,
) -> Vec<Event> { ) -> Vec<Event> {
let mut event_stream = Vec::<Event>::new(); let mut event_stream = Vec::<Event>::new();
let mut states: HashMap<EventType, EventState> = HashMap::new(); let mut states: HashMap<EventType, EventState> = HashMap::new();
...@@ -328,7 +327,7 @@ impl EventDispatcher { ...@@ -328,7 +327,7 @@ impl EventDispatcher {
&mut self, &mut self,
input_event: &InputEvent, input_event: &InputEvent,
_states: &mut HashMap<EventType, EventState>, _states: &mut HashMap<EventType, EventState>,
_widget_manager: &WidgetManager, widget_manager: &WidgetManager,
) -> Vec<Event> { ) -> Vec<Event> {
let mut event_stream = Vec::new(); let mut event_stream = Vec::new();
if let Some(current_focus) = widget_manager.focus_tree.current() { if let Some(current_focus) = widget_manager.focus_tree.current() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment