Quellcode durchsuchen

add some comment

Zidi vor 5 Jahren
Ursprung
Commit
ad8dcbb385
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      demo/sfml_opengl3/nuklear_sfml_gl3.h

+ 1 - 1
demo/sfml_opengl3/nuklear_sfml_gl3.h

@@ -442,7 +442,7 @@ nk_sfml_handle_event(sf::Event* evt)
         } else nk_input_motion(ctx, evt->touch.x, evt->touch.y);
         } else nk_input_motion(ctx, evt->touch.x, evt->touch.y);
         return 1;
         return 1;
     } else if(evt->type == sf::Event::TextEntered) {
     } else if(evt->type == sf::Event::TextEntered) {
-		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.
+		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 BACKSPACE input.
 			nk_input_unicode(ctx, evt->text.unicode);
 			nk_input_unicode(ctx, evt->text.unicode);
 		}
 		}
         return 1;
         return 1;