# InputManager

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/struct-inputmanager/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct InputManager
```

Receives input from the windowing subsystem and dispatches it to
interested parties for processing.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/input_manager.rs#L11)

## Members

- [`new`](#function-new)
- [`instance`](#function-instance)
- [`dispose`](#function-dispose)

<a id="function-new"></a>

### new

```rust
fn new() -> Self
```

Creates an input manager.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/input_manager.rs#L25)

<a id="function-instance"></a>

### instance

```rust
fn instance() -> Option<Rc<dyn IInputManager>>
```

The input manager registered with the locator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/input_manager.rs#L34)

<a id="function-dispose"></a>

### dispose

```rust
fn dispose(self: &Self)
```

Completes the observables of the input manager.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/input_manager.rs#L39)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Default`
- [`IInputManager`](/docs/0.5.0/api/ferroui-base/input/trait-iinputmanager/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
