projects
/
mercenary-reloaded.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace printf/fprintf with own print_info() / print_error() using SDL_log
[mercenary-reloaded.git]
/
src
/
libkeyboard
/
keyboard.c
diff --git
a/src/libkeyboard/keyboard.c
b/src/libkeyboard/keyboard.c
index
5643c31
..
f6d5cce
100644
(file)
--- a/
src/libkeyboard/keyboard.c
+++ b/
src/libkeyboard/keyboard.c
@@
-20,6
+20,7
@@
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
+#include "../libsdl/print.h"
#include "keyboard.h"
//#define DEBUG_KEYS
#include "keyboard.h"
//#define DEBUG_KEYS
@@
-120,7
+121,7
@@
void set_key(const char *key, int down)
}
}
if (code < 0 || code >= 0x80) {
}
}
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;
}
return;
}
@@
-141,7
+142,7
@@
void set_key(const char *key, int down)
}
if (buffer_len == buffer_size) {
}
if (buffer_len == buffer_size) {
-
fprintf(stderr,
"keyboard buffer overflow\n");
+
print_error(
"keyboard buffer overflow\n");
return;
}
return;
}