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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top