New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling/Enabling an InputAction doesn't reset it's state. #261
Comments
Has there been any movement on this issue? I'm on 0.1.2 and it's still a problem. Any work arounds? BTW the SetCallbacks() with the and Generate Interfaces is pretty sweet. |
I'll take a look, and try to get a fix in for next release |
Fantastic! Thank you! |
@Wahooney I'm going to talk over with a few other engineers. When I wrote up a test to repro your issue, I'm starting to think it might be as designed. But I could be wrong, I'm gonna get a second opinion. Here is a test without any disabling. Press the key, action gets fired, release the key, different action gets fired. Press the key, action gets fired. If you comment out releasing that key, the action wont get fired twice. I'm wandering if the key is also released while action is disabled, is that as if it never happened, as in below if that code was not there to release. I'll get back to you, this one I'm not 100% clear on what should actually happen.
|
@Wahooney This test is what I interpret your issue, but this passes. Is there anything I'm missing here on what you are running into?
|
If I'm reading that right that does seem to be the process. |
@Wahooney There's a stack of changes that landed yesterday and among them, I think the issues around this should be resolved. One of the key changes is that actions will now properly cancel ongoing interactions when calling Disable (see here). When reenabled, there is also now an initial sync to the current state of the control. And subsequent control changes should lead to proper triggering. Please let us know if you still see issues around this. |
@Wahooney , with 0.2.0-preview now available. You should be good now with this issue being fixed. I'll keep bug open until you can confirm. |
@douglas-piconi This issue is fixed somewhere in the past and does not happen anymore. |
ok great thank you @JiaUnity |
There is an issue in 0.0.7/8 when you have a Press and Release InputAction (in my case a member, not an asset):
The text was updated successfully, but these errors were encountered: