move delta.ScriptInput to state.ScriptInput