Moved InputEngine and EventEngine declarations to __init__