summaryrefslogtreecommitdiff
path: root/im.h
diff options
context:
space:
mode:
Diffstat (limited to 'im.h')
-rw-r--r--im.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/im.h b/im.h
index e038f77..12d8ac8 100644
--- a/im.h
+++ b/im.h
@@ -1,4 +1,5 @@
-#include "imtable.h"
+//#include "imtable.h"
+#include "boshiamy.h"
#define IM_BUFFER_LEN 32
#define ENTER_KEY 0x0D
#define BACKSPACE_KEY 0x7F
@@ -61,7 +62,7 @@ int update_im_state(char input, char * output) {
output[1] = 0;
return 1;
}
- if ( ('a' <= input && input <= 'z')||('0' <= input && input <= '9')||(input == ' ') ) {
+ if ( ('a' <= input && input <= 'z')||('0' <= input && input <= '9') ||(input == ' ') || (input == ',') || (input == '.')) {
if ( (im_buffer_pos < IM_BUFFER_LEN) && (im_buffer_pos < IM_TABLE_ENTRY_LEN) ){
im_buffer[im_buffer_pos] = input;
im_buffer_pos++;