Moved orientation stuff into input class