# input_set_state

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L944
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-input-c-input_set_state/

```c
static void input_set_state(struct input_ctx *, const struct input_transition *)
```

## Parameters

- `ictx` (`struct input_ctx *`)
- `itr` (`const struct input_transition *`)

## Called by

- [`input_parse`](/en/tmux/3.7c/reference/c-function-input-c-input_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1004)

## Referenced declarations

- [`input_state.enter`](/en/tmux/3.7c/reference/c-struct-input_state-enter/) (attribute)
- [`input_state.exit`](/en/tmux/3.7c/reference/c-struct-input_state-exit/) (attribute)
- [`input_ctx`](/en/tmux/3.7c/reference/c-struct-input_ctx/) (struct)
- [`input_transition`](/en/tmux/3.7c/reference/c-struct-input_transition/) (struct)
- [`input_ctx.state`](/en/tmux/3.7c/reference/c-struct-input_ctx-state/) (attribute)
- [`input_transition.state`](/en/tmux/3.7c/reference/c-struct-input_transition-state/) (attribute)
