-1
\$\begingroup\$

I created one GLUT project which has my project's introduction page. When I pressed ENTER key, it should redirect to my front page of project which I created as another project.

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

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);
\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.