Real information about Unreal Engine 3

Sunday, March 31, 2013

Input Event Flow

If you ever tried to make a mod based on UTGame, you might have found in some situations you could not recieve user input in PlayerController. For example, when the pause menu pops up. This is because there are many layers of input handlers in UE. When an input handler receives an input event, the handler can capture it and prevent it from being processed by other handlers.

Input Handler


In UE, a class called Interaction represents the input handler. It has three delegate functions for scriptors to get input events:
  • OnReceivedNativeInputKey
  • OnReceivedNativeInputAxis
  • OnReceivedNativeInputChar
If these delegates return true, the input event will be considered as handled and will not be processed further.
Read More

Followers

AD (728x90)

Powered by Blogger.