diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 02:30:10 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 02:30:10 -0700 |
commit | 63b78eed2d0ec3a248ff7537fd7273102cf41e0a (patch) | |
tree | ec2ac966ca65a5b9375723b3ae8d57a9ffe2e832 /im.h | |
parent | 43e028136ef84c900f565946d5f694f9e4fc4eee (diff) |
Fully functional boshiamy implementation
Diffstat (limited to 'im.h')
-rw-r--r-- | im.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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++; |