| 318 | } |
| 319 | |
| 320 | MaaBool CustomClickKey(int32_t keycode, void* trans_arg) |
| 321 | { |
| 322 | auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg); |
| 323 | auto ctx = customCtx->callbacks["click_key"]; |
| 324 | return ctx->Call<bool>([&](maajs::FunctionType func) { |
| 325 | return func.Call( |
| 326 | { |
| 327 | maajs::NumberType::New(func.Env(), keycode), |
| 328 | }); |
| 329 | }); |
| 330 | } |
| 331 | |
| 332 | MaaBool CustomInputText(const char* text, void* trans_arg) |
| 333 | { |