Remove debug printf.

This commit is contained in:
Bartosz Taudul 2024-09-19 20:58:05 +02:00
parent f971faab58
commit 4795011b12
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -205,7 +205,6 @@ Backend::Backend( const char* title, const std::function<void()>& redraw, const
return EM_TRUE;
} );
emscripten_set_keydown_callback( EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, EM_TRUE, [] ( int, const EmscriptenKeyboardEvent* e, void* ) -> EM_BOOL {
printf( "key down: %s\n", e->code );
const auto code = TranslateKeyCode( e->code );
if( code == ImGuiKey_None ) return EM_FALSE;
ImGui::GetIO().AddKeyEvent( code, true );