When OpenSceneGraph (OSG) is running the program, the key does not respond, and the solution to the program does not exit when pressing esc

When OpenSceneGraph (OSG) is running the program, the key does not respond, and the solution to the program does not exit when pressing esc

Reason: The osg running program is full-screen and the input method cannot automatically switch to the English input method.
The solution is as follows:

1. Add American keyboard
1. Open Settings
2. Select language and time, select language
3. Add language, select American English
4. Call out this American keyboard before running

2. After running the program and before pressing the key, press and hold the left mouse button

In this way, the program can respond to key events, and press ESC to exit the program
Cow, cow

Guess you like

Origin blog.csdn.net/qq_38222947/article/details/115110422