Question

On GLUT glutkeyboardfunc it returns 3 values I understand the char parameter but don't understand the other 2 are. Want do these parameters mean?

Était-ce utile?

La solution

The additional params are the x and y callback parameters indicate the mouse location in window relative coordinates when the key was pressed

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top