-
Notifications
You must be signed in to change notification settings - Fork 326
NEW: (ISXB-1524, ISX-2325, revisiting ISXB-1396) Fix for rebinding issues related to incorrect event suppression + Changed Rebinding Sample #2168
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
Open
ekcoh
wants to merge
98
commits into
develop
Choose a base branch
from
ekcoh/rebinding-issues-events
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
e5509ff
Debug files
ekcoh 58ee7a8
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh d323b9b
Added debug script to scene
ekcoh da35c49
Added wait to RebindActionUI.cs
ekcoh 93de642
Added input event handled policy run-time setting
ekcoh 59b2659
wip
ekcoh e4e57cf
Modified handled evaluation in state monitors. Formatting.
ekcoh 00abdcf
Renamed variable
ekcoh 9bdd2d2
Refactoring of names
ekcoh 71e7b61
Updated rebinding UI sample to use new feature (handling policy)
ekcoh b50d660
Undo of previous change
ekcoh 9c6b2d8
Undo previous change
ekcoh 2d195ed
Made input manager property internal for now
ekcoh f9c61f5
Attempt to fix xml syntax error for doc
ekcoh 10d2579
Updated changelog
ekcoh 21bd4a8
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh edbdbcf
Removed ActionDebug script from branch
ekcoh 1baba6c
Undo changes to UI sample actions
ekcoh b7d8a10
Removed debug comments
ekcoh 69aa686
Formatting
ekcoh 7d07d89
Undo debug comment
ekcoh eed66dc
Further tweaks of logic
ekcoh 3dfda93
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh c39c1c0
Fixed formatting
ekcoh 97b41f9
Merge branch 'ekcoh/rebinding-issues-events' of github.com:Unity-Tech…
ekcoh b82cf28
Expanded Rebinding example to show how actions fire in relation to input
ekcoh d1932d5
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh 3ad7c58
Improvements to rebinding sample to increase visibility of potential …
ekcoh 200b123
Minor changes to sample scene, added delta rebind
ekcoh 85c8023
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh 74ef71a
Updated CHANGELOG.md
ekcoh eaa9295
Removed policy property from InputSystem and made the enum type inter…
ekcoh 3191c2e
Reformatted files
ekcoh 8500e3e
Minor tweaks to sample, expanded test coverage, temporary avoid deser…
ekcoh ca3e1cc
Renamed files, converted action indicators to prefabs and replaced th…
ekcoh 90a9a24
Tweaks to sample, adding missing namespace, changed game manager to u…
ekcoh 40771cb
Clean-up of rebinding sample
ekcoh af8ad8b
Cleanup of rebinding sample
ekcoh f3fb1f7
Formatting
ekcoh f98f4ec
Minor tweaks to rebinding sample and added support for showing disabl…
ekcoh 0a39dd7
Remove code explicitly disabling UI map from rebinding sample since i…
ekcoh 93c7942
Formatting
ekcoh 20e6920
Removed debug script
ekcoh 1e95882
Restored deserialization of setting
ekcoh 87a5590
Removed obsolete editor code and simplified game manager
ekcoh 211bd8a
Removed TODO
ekcoh f82d27a
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh abcfe77
Added timeout to example to make sure a user do not get stuck, if e.g…
ekcoh cbdbe1c
Merge branch 'ekcoh/rebinding-issues-events' of github.com:Unity-Tech…
ekcoh b21c51a
Version bump to 1.15.0
ekcoh 7b1a080
Version bump generated files
ekcoh 332e90b
Fixed xmldoc referencing internal types.
ekcoh 216d7fe
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh 538127f
Added support for suppressing any kind of state event during rebindin…
ekcoh 1f0514c
Merge branch 'ekcoh/rebinding-issues-events' of github.com:Unity-Tech…
ekcoh b5272cd
Added missing namespace to RebindSaveLoad
ekcoh 1ba9dba
Temporarily disabled new function of suppressing non-matched input, i…
ekcoh 7885737
Added ability to also reset all bindings
ekcoh baf6180
Tweaked UI to also render correctly on 16:10, e.g. WebGL
ekcoh 980abc0
Fixed a bug where selection wouldn't be restored if cancelling rebind…
ekcoh c7693dc
Added proper pausing to reveal any issues tied to time scale being ze…
ekcoh fa1eada
Unsaved changes
ekcoh cabce4f
Fixed xmldoc comment
ekcoh b6ec069
Replaced pointless interaction with a mini game which in turn surface…
ekcoh cf4a2b2
FIX: Bug fix to RebindActionUI not showing binding when no event occurrs
ekcoh a82be70
Sample cleanup
ekcoh b78ae23
Sample cleanup
ekcoh bdd16a4
Extracted input system related logic from Player into PlayerControlle…
ekcoh 414d7a6
Rumble and light effect fix for sample
ekcoh b2a111d
Fixed issues with light and rumble effects, removed unused file, remo…
ekcoh e7e99a3
Added missing player explosion, removed unused material, fixed derive…
ekcoh 2c3fdca
Separated FeedbackController out of PlayerController to support rumbl…
ekcoh b1bf5d3
Code cleanup and simplifications
ekcoh f934a06
Fix: Rebinding gamepad icons fail for derived (implicitly converted) …
ekcoh c534b22
Removed debug logs
ekcoh 0a25ec2
Eliminated chance of nullptr exception from CanvasGroupModifier which…
ekcoh d367d9c
Improved code quality of InvokeUnityEvents added corresponding editor…
ekcoh c7483d3
Fix: Prevent exiting into game when being 2 levels down menu hierarchy
ekcoh 4cac584
Added bug case references
ekcoh fd7f756
Replaced incorrect Transform with RectTransform to support free aspec…
ekcoh ac8dd32
FIX: ISXB-1595 Fixed an issue that could cause actions, e.g. UI defau…
ekcoh a99725c
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh 5c9beaf
Removed redundant Image components from rebinding sample.
ekcoh d4a6e43
Code cleanup
ekcoh c320b4a
Merge branch 'ekcoh/rebinding-issues-events' of github.com:Unity-Tech…
ekcoh f53427a
Updated rebinding asset based on changes from develop
ekcoh e78eae1
Fixed an issue where projectiles where destroyed at a fixed distance …
ekcoh c6e4018
Fixed a numerical error in FeedbackController and simplified associat…
ekcoh 6780d58
Renamed assets to have more meaningful names, created a dedicated UI …
ekcoh 96508f6
Undo addition of suppress non-matching events feature since its not r…
ekcoh 86a1a35
Decreased rebinding timeout to 6 seconds
ekcoh 8816429
Fix: Improved the fix to the main issue that this branch addresses so…
ekcoh 53104a1
Removed unused properties and added sensitivity constants that can la…
ekcoh 43829da
Fixed typo "something"
ekcoh 5d40eb4
Made a setting to enable/disable UI actions during gameplay. It defau…
ekcoh 9e5c31c
Code cleanup and simplification after reviewing all code on the branch
ekcoh 29414a5
Added #ifdef to handle rigidbodys different between Unity 6 and older…
ekcoh 89bebe3
Merge branch 'develop' into ekcoh/rebinding-issues-events
ekcoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using UnityEngine; | ||
using UnityEngine.InputSystem; | ||
using UnityEngine.InputSystem.LowLevel; | ||
|
||
public class ActionDebug : MonoBehaviour | ||
{ | ||
public InputActionReference trigger; | ||
|
||
// Start is called once before the first execution of Update after the MonoBehaviour is created | ||
void Start() | ||
{ | ||
trigger.action.performed += ActionOnPerformed; | ||
trigger.action.canceled += ActionOnCanceled; | ||
trigger.action.started += ActionOnStarted; | ||
trigger.action.Enable(); | ||
} | ||
|
||
private void ActionOnStarted(InputAction.CallbackContext obj) | ||
{ | ||
Debug.Log("Action Started"); | ||
} | ||
|
||
private void ActionOnCanceled(InputAction.CallbackContext obj) | ||
{ | ||
Debug.Log("Action Canceled"); | ||
} | ||
|
||
private void ActionOnPerformed(InputAction.CallbackContext obj) | ||
{ | ||
Debug.Log("Action Performed"); | ||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
if (trigger.action.WasPerformedThisFrame()) | ||
Debug.Log("Action Performed (Polled Event)"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Packages/com.unity.inputsystem/InputSystem/Events/InputEventHandledPolicy.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace UnityEngine.InputSystem.LowLevel | ||
{ | ||
/// <summary> | ||
/// Policy defining how the Input System will react to <see cref="InputEvent"/> instances marked as | ||
/// <see cref="InputEvent.handled"/> (Or marked handled via <see cref="InputEventPtr.handled"/>). | ||
/// </summary> | ||
public enum InputEventHandledPolicy | ||
{ | ||
/// <summary> | ||
/// Input events will be discarded directly and not propagate for state changes. | ||
/// </summary> | ||
SuppressStateUpdates, | ||
|
||
/// <summary> | ||
/// Input events will be processed for state updates but will not trigger interaction nor phase updates. | ||
/// </summary> | ||
SuppressActionUpdates | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Packages/com.unity.inputsystem/InputSystem/Events/InputEventHandledPolicy.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.