Quote: "...If your looking for a way to use more keys than the GDK default key commands you will need what Dodga was talking about in regards to Scancodes/Keystate. If that is the case then you will need to search for the Scancode list of the Keyboard. "
... or you can discover them by creating a simple test that outputs a key's scancode to the screen, like so:
void DarkGDK ( void )
{
char scancodeText[64] = "";
// Setup System
dbSyncOn();
dbSyncRate(60);
dbBackdropOn();
while ( LoopGDK ( ) )
{
if (dbLen(dbEntry()) > 0)
{
sprintf(scancodeText,
"Scancode of Last key: %d",
dbScanCode());
dbClearEntryBuffer();
}
else
{
strcpy(scancodeText,
"Scancode of Last key: no key entered");
}
dbText(2, 2, scancodeText);
dbSync( );
}
}
This code checks whether a key has been pressed; and, if so, prints the scancode of the last key to be pressed to the screen. Otherwise it will print "no key pressed".