2012-03-14 06:25:26 +00:00
|
|
|
// gcc b.c -Lc:/mingw32/lib -lmingw32 -lSDLmain -lSDL
|
|
|
|
|
2017-02-25 08:15:36 +00:00
|
|
|
#include "compat.h"
|
2013-10-06 07:50:16 +00:00
|
|
|
#include "sdl_inc.h"
|
2012-03-14 06:25:26 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
#include "sdlkeytrans.cpp"
|
2012-03-14 06:25:26 +00:00
|
|
|
|
|
|
|
#undef main
|
|
|
|
|
2012-10-29 04:28:10 +00:00
|
|
|
int main(void)
|
2012-03-14 06:25:26 +00:00
|
|
|
{
|
2013-10-06 07:50:16 +00:00
|
|
|
unsigned int i;
|
2012-03-14 06:25:26 +00:00
|
|
|
|
|
|
|
buildkeytranslationtable();
|
|
|
|
|
2013-10-06 07:50:16 +00:00
|
|
|
for (i = 0; i < sizeof(keytranslation); i++) {
|
2012-03-14 06:25:26 +00:00
|
|
|
if (i>0) printf(", ");
|
|
|
|
if (i%8 == 7) printf("\n");
|
2013-10-06 07:50:16 +00:00
|
|
|
printf("%d", keytranslation[i]);
|
2012-03-14 06:25:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|