Graphics update + input parsing