New answers tagged

0

With glutKeyboardFunc() we can detect keystrokes and do a system call to start the program. void keyboard(unsigned char c, int x, int y) { if (c == 13) { system("C:\\Users\\Folder\\program.exe"); exit(0); } } glutKeyboardFunc(keyboard);


Top 50 recent answers are included