You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
386 B

#ifndef CJS_PROC_EVENT
#define CJS_PROC_EVENT
#include <string>
#include "string.cpp"
namespace cjs {
namespace event {
void handle_bus_fire(int key_pass) {
cjs_str* key_str = cjs::str::receive(key_pass);
std::string key = key_str->to_str();
delete key_str;
g_event_bus.fire(key);
}
}
}
#endif //CJS_PROC_EVENT