Added externs for C++ including, return values to input event handlers