summaryrefslogtreecommitdiff
path: root/im.h
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 02:30:10 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 02:30:10 -0700
commit63b78eed2d0ec3a248ff7537fd7273102cf41e0a (patch)
treeec2ac966ca65a5b9375723b3ae8d57a9ffe2e832 /im.h
parent43e028136ef84c900f565946d5f694f9e4fc4eee (diff)
Fully functional boshiamy implementation
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++;