Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove noisy key event debug print #763

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 0 additions & 16 deletions imgui-winit-support/src/lib.rs
Expand Up @@ -408,20 +408,6 @@ impl WinitPlatform {
} if window_id == window.id() => {
self.handle_window_event(io, window, event);
}
// Track key release events outside our window. If we don't do this,
// we might never see the release event if some other window gets focus.
// Event::DeviceEvent {
// event:
// DeviceEvent::Key(RawKeyEvent {
// physical_key,
// state: ElementState::Released,
// }),
// ..
// } => {
// if let Some(key) = to_imgui_key(key) {
// io.add_key_event(key, false);
// }
// }
_ => (),
}
}
Expand Down Expand Up @@ -483,8 +469,6 @@ impl WinitPlatform {
// https://github.com/ocornut/imgui/issues/5047
handle_key_modifier(io, &key, pressed);

println!("KEY EVENT: {event:?}");

// Add main key event
if let Some(key) = to_imgui_key(key, event.location) {
io.add_key_event(key, pressed);
Expand Down