Change UIEvent to also include the original event from the UI library the game gui is currently using, such as SDL or GLFW.