"Chorded Action" InputAction not triggering despite high priority 您所在的位置:网站首页 chorded "Chorded Action" InputAction not triggering despite high priority

"Chorded Action" InputAction not triggering despite high priority

2023-04-23 03:38| 来源: 网络整理| 查看: 265

Hi people, I am unsure whether I deeply misunderstood the enhanced input system or if this is a bug:

Setup I have 3 InputMappingContexts, each containing a single InputAction:

Triggers on “Shift” key and has a priority of 100. No InputModifiers and no InputTriggers, does not consume input. Triggers on “E” key and has a priority of 50. No InputModifiers, but it has two InputTriggers: “Pressed” and “Chorded Action”. The latter refers to InputAction #1. Consumes input. Triggers on “E” key as well and has a priority of 0. No InputModifiers and only one InputTrigger: “Pressed”. Consumes input.

All 3 IMCs are added to the LocalPlayerEnhancedInputSubsystem simultaneously.

Problem When pressing the “E” key, InputAction #3 is triggered as expected. But when holding “Shift” and pressing the “E” key, InputAction #3 is also triggered.

Expected Because InputAction #2 has a higher priority than InputAction #3 and because all implicit and explicit InputTriggers of InputAction #2 are fulfilled, I would have expected #2 to be triggering instead of #3.

I have tried re-creating my IMCs and InputActions from scratch in case the assets are corrupted or similar, tried debugging via the “showdebug enhancedinput” command which does not show why one is triggering over the other.

The only solution that kind of works (but I would rather avoid) is to not bind my InputActions to “ETriggerEvent::Triggered” but to “ETriggerEvent::Started”.

Is this intended behavior? Can you not bind two separate InputActions to the same key with different priority, but then differentiate via the Chorded Action trigger?

Thanks in advance for any pointers.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有