How To Configure Inputs

Configure Inputs & Actions Relation

To configure the relation between inputs and actions just go into the Class Defaults (that can be your menu, or a button or a list or every other widget that inherit from WBP_GenericInputHandler.

in the Details panel you will find a parameter called mInputBindings

It is an Array of a custom Structure where every element determine which function to call when a key or a axes changes.

  • The FunctionName parameter indicates the Function (or Custom Event) that should be called, it must be a function that do NOT have parameters NOR return values otherwise it will not work by engine design, make sure you type the exact name.
  • The InputType parameter indicates if the functions need to be called when the keys (in the next array) will be pressed or released.
  • The Keys array parameter contains an array of input keys to consider when one of them satisfy the InputType parameter.
  • The Analogs array parameters contains a custom structure to configure each analog input.
    • The Analog parameter contains the raw analog key.
    • The Rule parameter contains a custom structure to determine when the previous Analog parameter should be considered as changed, the Rule parameter indicates that the value of the analog must be Greater Than or Less Than the Value indicated in the second parameter.
  • The ContinuousCall parameter determine if the function should be called continuously while the input is satisfied or just called once waiting that it will change again.
  • The ContinuousCallCurve contains the curve of the frequency used to determine how many times per seconds to call the function as the time passes, if you want to learn how to edit it follow this link.