示例#1
0
        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);
            }
            );
        }
示例#2
0
 public CustomInputHandler(IEnumerable <EInputKey> inInputs, OnMouseInputHandledDelegate inDelegate)
     : base()
 {
     foreach (var inputKey in inInputs)
     {
         MouseResponses.Add(inputKey, inDelegate);
     }
 }
示例#3
0
 public void AddMouseResponse(EInputKey inInputKey, OnMouseInputHandledDelegate func)
 {
     MouseResponses.Add(inInputKey, func);
 }