Running in the background, watching IME status, notifying it to keyboard via RAW Hid.
- Update
src/config.hto fit with your keyboard(VENDOR_ID, PRODUCT_ID,USAGE_PAGE,USAGE_ID, RAW_EPSIZE). - Run
build.cmdto build executable. - Move
build/bin/Release/ime-watcher.exeto somewhere(e.g.C:/ime-watcher.exe), register it as a startup task.(optional, recommended).
Configure Raw Hid.
void raw_hid_receive(uint8_t *data, uint8_t length) {
if(data[0] == 0){
// english
}
if(data[0]== 1){
// non-english
}
}