Skip to content

Commit

Permalink
tests/serde_objects.rs: add NamedKey
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Oct 17, 2023
1 parent c01a81e commit 9e07381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/serde_objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use winit::{
dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize},
event::{ElementState, MouseButton, MouseScrollDelta, TouchPhase},
keyboard::{Key, KeyCode, KeyLocation, ModifiersState, PhysicalKey},
keyboard::{Key, KeyCode, KeyLocation, ModifiersState, NamedKey, PhysicalKey},
window::CursorIcon,
};

Expand All @@ -23,6 +23,7 @@ fn events_serde() {
needs_serde::<MouseButton>();
needs_serde::<MouseScrollDelta>();
needs_serde::<Key>();
needs_serde::<NamedKey>();
needs_serde::<KeyCode>();
needs_serde::<PhysicalKey>();
needs_serde::<KeyLocation>();
Expand Down

0 comments on commit 9e07381

Please sign in to comment.