#include <stdio.h>
#include <stdint.h>
#include <string.h>
+#include "../libsdl/print.h"
#include "keyboard.h"
//#define DEBUG_KEYS
}
}
if (code < 0 || code >= 0x80) {
- fprintf(stderr, "Key code '%s' unknown, please fix!\n", key);
+ print_error("Key code '%s' unknown, please fix!\n", key);
return;
}
}
if (buffer_len == buffer_size) {
- fprintf(stderr, "keyboard buffer overflow\n");
+ print_error("keyboard buffer overflow\n");
return;
}