add some comment

This commit is contained in:
Zidi 2020-02-26 22:47:48 +08:00
parent ce6b5b03c4
commit 9ee58df23e

View File

@ -442,7 +442,7 @@ 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) {
if (evt->text.unicode != 8) {
if (evt->text.unicode != 8) { //this line will check user whether input BACKSPACE. 8 is the Unicode of BACKSPACE. If true, the function will ignore text input.
nk_input_unicode(ctx, evt->text.unicode);
}
return 1;