public InputBinderTestInputHandler(EInputHandlerResult inInputHandlerResult) : base() { ButtonResponses.Add ( InputKeyToUse, pressed => { ReceivedResponse = true; return(inInputHandlerResult); } ); AnalogResponses.Add ( InputKeyToUse, analogValue => { ReceivedResponse = true; return(inInputHandlerResult); } ); MouseResponses.Add ( InputKeyToUse, mousePosition => { ReceivedResponse = true; return(inInputHandlerResult); } ); }
public CustomInputHandler(IEnumerable <EInputKey> inInputs, OnMouseInputHandledDelegate inDelegate) : base() { foreach (var inputKey in inInputs) { MouseResponses.Add(inputKey, inDelegate); } }
public void AddMouseResponse(EInputKey inInputKey, OnMouseInputHandledDelegate func) { MouseResponses.Add(inInputKey, func); }