internal void OnInputDetected(FFEventParameter args) { FFEngine.Events.UnregisterForEvent("InputKeyDetected", OnInputDetected); isRegistered = false; InputKeyBinding newBinding = args.data as InputKeyBinding; if (newBinding.key != KeyCode.Escape) { EInputTriggerType type = binding.trigger; binding = newBinding; binding.trigger = type; _inputKey.UpdateBinding(binding); } UpdateDisplay(); }
internal InputReference(AInputEvent a_input, EInputTriggerType a_eventType) { trigger = a_eventType; input = a_input; }