From 63b78eed2d0ec3a248ff7537fd7273102cf41e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Sat, 6 Sep 2025 02:30:10 -0700 Subject: Fully functional boshiamy implementation --- im.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'im.h') 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++; -- cgit v1.1