fix bug; input_state_t and input_manager_t