# Intercept input event data

**URL:** <https://forums.unrealengine.com/t/intercept-input-event-data/371246>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 22, 2016, 9:26am UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246 "2016-09-22T09:26:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuang\_Liu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shuang\_Liu](https://forums.unrealengine.com/u/Shuang_Liu)\
**Post date:** [September 22, 2016, 9:26am UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246/1 "2016-09-22T09:26:39Z")

</div>

If I need an input event management class to manage all the input events, such as: keyboard, mouse input (click or slide), how to intercept input event data directly?

---

<div class="post-metadata">

**Author:** ![staticvoidlol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@staticvoidlol](https://forums.unrealengine.com/u/staticvoidlol)\
**Post date:** [September 23, 2016, 9:25am UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246/2 "2016-09-23T09:25:16Z")

</div>

I’d think that [PlayerInput](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/APlayerController/PlayerInput/index.html) ([.h](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerInput.h) and [.cpp](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Engine/Private/UserInterface/PlayerInput.cpp))would be a good starting point.  
Also, see that the [PlayerController](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h) has a PlayerInput instance that I assume does all of this processing:

```
/** Object that manages player input. */
UPROPERTY(transient)
class UPlayerInput* PlayerInput;   

```

---

<div class="post-metadata">

**Author:** ![Shuang\_Liu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shuang\_Liu](https://forums.unrealengine.com/u/Shuang_Liu)\
**Post date:** [September 29, 2016, 9:19am UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246/3 "2016-09-29T09:19:18Z")

</div>

Thank you, this is related to InputComponent, but now the demand is in some places, events are intercepted unknown things, rather than by their own control, so it is necessary to intercept the system input through the control of their own, how can I get to

---

<div class="post-metadata">

**Author:** ![Shuang\_Liu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shuang\_Liu](https://forums.unrealengine.com/u/Shuang_Liu)\
**Post date:** [September 29, 2016, 9:20am UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246/4 "2016-09-29T09:20:22Z")

</div>

For example, input events are controlled by their own, rather than the system intercepted

---

<div class="post-metadata">

**Author:** ![staticvoidlol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@staticvoidlol](https://forums.unrealengine.com/u/staticvoidlol)\
**Post date:** [September 29, 2016, 1:47pm UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246/5 "2016-09-29T13:47:56Z")

</div>

My apologies but I don’t quite understand what you mean. Could you give a more detailed example of what you are trying to do?

---

<div class="post-metadata">

**Author:** ![Shuang\_Liu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shuang\_Liu](https://forums.unrealengine.com/u/Shuang_Liu)\
**Post date:** [December 8, 2016, 12:10pm UTC](https://forums.unrealengine.com/t/intercept-input-event-data/371246/6 "2016-12-08T12:10:10Z")

</div>

I would like to dynamically bind and lift the input event, for example, bound to an object with the right mouse button to click on the input and clear the right click event
