/* “make_code” is the scancode. “pressed” is a boolean that is true if this is a keydown event, and false if it’s a keyup. */ r = my_handler_function(make_code, pressed); if (r != EC_SUCCESS) return r;