i'm continuing working on the Amiga GL implementation and few minutes ago I've seen a strange thing.
In glut.h there are all the #define for the special keys but their values are all above 256. The type for the keyboard function is unsigned char so its value can be in range 0-255... I've seen in the interfaces/glut.h that is defined also as unsigned char...
Is this a bug or I am missing somethings? On Win32 system this functions use a int as parameter
Joined: 22-Jan-2004 Posts: 1301
From: City of Lost Angels, California.
@whiz
All I know is that the keys do work as intended when using these defines, as can be checked with the arrow keys used by the logo and gears3 demos.
Beyond that your question remains valid seeing how the keyfunc prototype has its first argument defined as a uint8 which couldn't hold any value larger than 255 but it seems unlikely to be a coincidence that the define precisely start at 256.