Merge pull request #64 from generalzzd/zzd
fix: UTF-8 Backspace now works as expected in SFML OpenGL 3 Demo
This commit is contained in:
commit
e4d90b7db3
@ -442,7 +442,10 @@ nk_sfml_handle_event(sf::Event* evt)
|
||||
} else nk_input_motion(ctx, evt->touch.x, evt->touch.y);
|
||||
return 1;
|
||||
} else if(evt->type == sf::Event::TextEntered) {
|
||||
nk_input_unicode(ctx, evt->text.unicode);
|
||||
/* 8 ~ backspace */
|
||||
if (evt->text.unicode != 8) {
|
||||
nk_input_unicode(ctx, evt->text.unicode);
|
||||
}
|
||||
return 1;
|
||||
} else if(evt->type == sf::Event::MouseWheelScrolled) {
|
||||
nk_input_scroll(ctx, nk_vec2(0,evt->mouseWheelScroll.delta));
|
||||
|
Loading…
Reference in New Issue
Block a user