> For the complete documentation index, see [llms.txt](https://lightbug14.gitbook.io/ccp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lightbug14.gitbook.io/ccp/how-to.../implementation/actions/use-a-custom-input-handler.md).

# Use a custom Input Handler

In order to use a custom input handler:

1. Create a custom class that derives from the *InputHandler* abstract class.
2. Implement its abstract methods using the input system API.
3. Add the component created (1.) somewhere in the scene.
4. Go to `CharacterBrain` and assign the input handler component.

## Creating the class

Plain and simple C#.

{% code fullWidth="false" %}

```csharp
public class CustomInputHandler : InputHandler
{
		public override bool GetBool(string actionName)
		{
				// To be implemented ...
		}
		
		public override float GetFloat(string actionName)
		{
				// To be implemented ...
		}

		public override Vector2 GetVector2(string actionName)
		{
				// To be implemented ...
		}
}
```

{% endcode %}
