Граф коммитов

2365 Коммитов

Автор SHA1 Сообщение Дата
Alex Tyrer a0219d1637
FIX: Fixed pasting bindings into empty Input Action asset (case ISXB-1180) - take #2 (#2049)
o Ensure PasteBlocks() deals with invalid selection - when copied type is binding we need to have a valid Action selected to paste into.
o Ensure Paste option is only present in context menu when appropriate.
o Fix menu separator presence (or absense).
o Action Maps view: can Paste ActionMap or Action (if a map is present).
o Actions view: can paste Actions or Bindings depending on selected item context.
2024-11-21 16:32:37 +00:00
Paulius Dervinis 343e8bf57e
FIX: Readd the current gamepad rect to gamepad visualiser (#2053) 2024-11-19 17:09:04 +02:00
Paulius Dervinis 52972d5a09
NEW: Added a very basic Lightbar and Rumble sample (#2052)
* Add lightbar and rumble sample
2024-11-19 16:41:53 +02:00
Paulius Dervinis 6e639725b0
CHANGE: Scale Visualizer Sample UI and font size to make it easier to see on mobile (#2051)
* Changed default font and scaled rect UI by 25%

* Add touchbar to gamepad visualiser
2024-11-19 13:49:52 +02:00
Alex Tyrer b0478f0cb4
[Input System] Fixed pasting bindings into empty Input Action asset (case ISXB-1180) (#2046)
FIX: Fixed pasting bindings into empty Input Action asset (case ISXB-1180)
2024-11-13 09:29:41 +00:00
adrian-koretski-unity3d 9ab25ab019
DOCS: Specifying mouse position and delta behaviour (#2028)
* Added documentation in Mouse.cs to specify the independent behaviour between position and delta. This is to help clarify ISXB-819

* Adjusted mouse.cs positions and delta documentation.

* doc amendments

Moved new docs to <remarks> section, and improved wording.

---------

Co-authored-by: Ben Pitt <benp@unity3d.com>
2024-11-12 10:03:27 -05:00
Simon Wittber 6331849de7
FIX: ISXB-1153 fix exception on paste to empty actionmap list (#2042)
* handle array length 0 correctly
* guard bad values in GetBindingIndexBeforeAction
2024-11-12 12:19:05 +08:00
Håkan Sidenvall 8b860b7ee9
DOCS: Added auto-generated docs for auto-generated code. (#2045)
* DOCS: Added auto-generated docs for auto-generated code.
2024-11-11 12:56:05 +01:00
Alex Tyrer 12ee89a3f5
FIX: The "Add Control Scheme..." popup now requires explicit Save/Close user action (case ISXB-1131) (#2044)
* [Input System] The "Add Control Scheme..." popup now requires explicit Save/Close user action (case ISXB-1131)

o Previously clicking outside the popup window (anywhere in the editor) would close the popup window.

o This would leave a new blank (unnamed, orphaned) control scheme populating the UI - this was confusing.

o Now this popup will persist until the user explictly chooses to Save or Cancel.

* [Input System] Added CHANGELOG entry for "Add Control Scheme..." popup fix (case ISXB-1131)

* [Input System] Fix typo in CHANGELOG entry - removed extraneous final closing parenthesis.

* [Input System] Licensing failure - try limiting to version 2021.3.45f
2024-11-06 18:18:09 +01:00
bmalrat 08349cc7c6
FIX: Fixed unexpected control scheme switch when using `OnScreenControl` and pointer based schemes (ISXB-656) (#2023) 2024-11-04 17:35:44 -05:00
bmalrat 4e8347ae83
FIX: Fixed Rename mode is not entered and name is autocompleted to default when creating a new Action Map on pre 6000 version (#2040) 2024-10-30 16:33:41 -04:00
Alex Tyrer 747767fa14
FIX: Fixed ISubmitHandler.OnSubmit event processing when operating in Manual Update mode (case ISXB-1141) (#2041)
* [Input System] Fix for event processing when operating in Manual Update mode (case ISXB-1141)
* [Input System] Added CHANGELOG.md entry for ISubmitHandler.OnSubmit fix (ISXB-1141)
2024-10-30 16:55:21 +00:00
Simon Wittber 43efc3b035
FIX: ISXB-1127 composite incorrectly returning IsPressed (#2035)
* Revert "FIX: Composite binding isn't triggered after ResetDevice() called during Action handler (ISXB-746) (#1893)"
This reverts commit 0ddd534d86.
2024-10-28 14:24:34 +08:00
João Freire c52fff9a4a
FIX: PointerEventData.pointerId is the same when simultaneously releasing and then pressing with another finger (ISXB-845) (#2033)
* Check if pointer state touchID matches cached TouchControl touchID

Covers the edge case of releasing one finger and pressing with another in the same frame.

* Add unit test to avoid regression

* Add pointerId to the asserts

* Update CHANGELOG.md

* Apply changes based on review

* Get pointer state index based on pointerIds instead of touch controls cache

The commit also:
- Expands unit test case
- Removes m_PointerTouchControls as they were not being used anymore

* Fix compiling error

* Fix again compile errors

* Fix CHANGELOG.md

* Removed wrong changelog entry
2024-10-24 18:29:21 +02:00
StefanUnity 0a39ee0065
NEW: Add two performance tests measuring frame times (#2027)
* one test tries to simluate keyboard/mouse FPS input
* one test measures time it takes to do nothing at all
2024-10-24 16:21:43 +02:00
bmalrat 00347368b0
FIX: Fixed `ArgumentNullException: Value cannot be null.` during the migration of Project-wide Input Actions (ISXB-1105) (#2037)
* Revert "CHANGE: Performance improvement - removed project-wide asset migration code (#2025)"
* Fixed ArgumentNullException during the migration of Project-wide Input Actions
2024-10-24 10:13:31 -04:00
StefanUnity 3d5266a712
NEW: Add instability detection automation to test jobs (#2036)
* added instability detection into the "after" section for our jobs
* tool version pinned at 0.5.1 for now
2024-10-24 10:55:58 +02:00
Håkan Sidenvall de8d66290d
FIX: ISXB-1134 Fix for Action context menu not showing on right-click. (#2032)
* FIX: Context menu issue on 2022.3, seems valid also on 6000.21f
2024-10-24 08:42:04 +08:00
Ben Pitt 94c260e2a2
DOCS: New Timing and Latency section (DOCF-1179) (#1994)
* Timing and latency section

* removed stray escape characters in code samples

* Small edits and formatting fixes

* Formatting pass

* fix broken link

* minor edits

* ongoing corrections from peer review WIP

* renamed file link fixes

* Completed landing page links section

* fixed broken link (xref not working)

* Update Packages/com.unity.inputsystem/Documentation~/timing-input-events-queue.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-select-mode.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-select-mode.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-optimize-dynamic-update.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-optimize-dynamic-update.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-mixed-scenarios.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-mixed-scenarios.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-select-mode.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

* Update Packages/com.unity.inputsystem/Documentation~/timing-select-mode.md

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>

---------

Co-authored-by: Jo Dawes <49957016+jo-unity@users.noreply.github.com>
Co-authored-by: Alex Tyrer <AlexTyrer@users.noreply.github.com>
2024-10-18 13:45:04 +01:00
Paulius Dervinis 40dc911fc2
CHANGE: PR template text (#2031) 2024-10-18 13:07:32 +03:00
Paulius Dervinis 0c6e227990
CHANGE: Disable some display index tests on android (#2029)
* Update UITests.cs

* Update UITests.cs

* Revert "Update UITests.cs"

This reverts commit 3f4394af5f.

* Update UITests.cs
2024-10-17 17:16:46 +03:00
Paulius Dervinis 0b1565f56f
CHANGE: Bump version to 1.11.3 (#2030)
* Update version numbers

* Precompiled layouts

* Update CHANGELOG.md

* Revert minimum editor version

tests fail, leaving this headache for later
2024-10-17 17:14:56 +03:00
Paulius Dervinis db7b26f5ff RELEASE: 1.11.2 2024-10-16 13:23:09 +03:00
Alex Tyrer bfe5dfd12b
FIX: Improvement for event handling in FixedUpdate mode (#2026)
* [Input System] Improvement for event handling in FixedUpdate mode

Previously InputAction.WasPerformedThisFrame() could be true for consecutive frames.InputAction.

This happens in frames where no FixedUpdate steps are run.
2024-10-11 12:29:20 +01:00
Alex Tyrer ba9677b6fb
CHANGE: Performance improvement - removed project-wide asset migration code (#2025)
This was only required to fix projects created with 1.8.0-pre-release versions.

As it adds a performance cost on each domain reload the decision was made to removing this performance improvement.
2024-10-11 11:45:34 +01:00
Simon Wittber 24012a00bf
FIX: UUM-71260 Removed redundant warning (#2020)
* removed redundant warning
2024-10-11 16:28:42 +08:00
bmalrat 5f6e2f5321
FIX: Fixed wrong `Display Index` value for touchscreen events (ISXB-1101) (#2021) 2024-10-10 10:42:53 -04:00
Paulius Dervinis b3549acfee
FIX: Analytics errors on consoles by reverting changes from #1991 (#2024)
* Revert #1991 changes to analytics
2024-10-10 15:30:55 +03:00
João Freire bb685c5843
FIX: The button is not clickable when using Windows touch simulation inputs (ISXB-483) (#2012)
* Pair simulated touchscreen with PlayerInput user

* Add period to end of sentence

* Fix formatting

* Refactored initial fix to queue state events instead

Based on review and code comments, this seems like a better solution that fixes the main problem and also better simulates a touchscreen when used together with PlayerInput.
Automatic pairing and control scheme occurs now since we're using input events a real device would also use.

* Change logic to be based on state events

The previous logic was based on changing state and didn't apply if we queued events.

Also, this commit avoids processing the queued events for the simulated Touchscreen.

* Remove unnecessary left over code

* Fix setting wrong touchIDs when moving multiple touches
2024-10-04 13:30:26 +02:00
adrian-koretski-unity3d ff7837e94c
FIX: ISXB-687 Added guard clause to RemovePointerAtIndex in InputSy… (#1982)
* FIX: ISXB-687   Added guard clause to RemovePointerAtIndex in InputSystemUIInputModule to not remove touch pointers on the same frame they are released.

* Added changelog entry for fix ISXB-543

* Fixed infinite loop caused by FilterPointerStatesByType() trying to force their release on the same frame they occur.

Ran the formatter and applied changes to CHANGELOG.md

* Fixed issue where touch pointers don't get released when mouse or pen inputs happen.

* Fixed incorrect boolean logic in InputSystemUIInputModule.cs causing certain pointers to be incorrectly released or not released.

* Moved changelog entry for ISXB-687 into unreleased.

* Moved double touch pointer changelog entry to unreleased.

* Removed additional duplicate entries in changelog

* Removed superfluous code to get pointer state that is never used in InputSystemUIInputModule.
2024-10-02 13:59:34 -04:00
Alex Tyrer 3a96dace25
FIX: MakeEscapedJsonString now null-checks inputs. Empty strings also now bypass an allocation. (#2019)
[Input System] MakeEscapedJsonString now null-checks inputs. Empty strings also now bypass an allocation.

This matches older behaviour on null-checking descriptor fields which is needed for certain device implementations.
2024-10-01 17:52:01 +01:00
João Freire d5f2dff559
FIX: Wrong mapping of Xbox Series S|X and Xbox One wireless controllers "View" button on macOS (#2017) 2024-10-01 11:57:56 +02:00
Håkan Sidenvall 82ec62491f
FIX: Corrected invalid CHANGELOG.md (#2015) 2024-09-27 15:44:37 +02:00
bmalrat 5cfed50c48
NEW: Added canRunInBackground flag in device debug view (#2013) 2024-09-27 08:43:47 -04:00
Håkan Sidenvall 026cdcc6a8
NEW: ISX-2099 InputAction code-setup (authoring) analytics (#2003)
* Added code setup analytics logged with new analytic event "input_exit_playmode".
2024-09-27 12:05:22 +02:00
Paulius Dervinis 3a2a4c2a1a
CHANGE: Bump version to 1.11.2 (#2014) 2024-09-26 11:28:20 +03:00
Paulius Dervinis 4338ba28d6 RELEASE: 1.11.1 2024-09-26 10:12:40 +03:00
Ben Pitt 91dd5cf112
DOCS: Adding docs for methods in InputInteractionContext (DOCF-4371) (#1999)
* Adding docs for methods in InputInteractionContext.
2024-09-25 14:41:46 +02:00
Lyndon Homewood 1abc745588
CHANGE: Added message to notify the user if a PlayerInputComponent fails to bind a control scheme (ISXB-1020) (#2007)
* Added message to notify the user if a PlayerInputComponent fails to bind a control scheme (ISXB-1020)

This can happen if there are multiple game objects with PlayerInputComponent's and not enough devices to support them
2024-09-24 11:18:13 +01:00
Paulius Dervinis 8fbff9bd7a
CHANGE: Updated Mouse Visualizer (#2011) 2024-09-24 09:00:41 +03:00
Håkan Sidenvall 773551734a
FIX: Narrowing scope of ENABLE_CLOUD_SERVICES_ANALYTICS (#1991)
* FIX: Modified scope of ENABLE_CLOUD_SERVICES_ANALYTICS to support editor analytics.

---------

Co-authored-by: Lyndon Homewood <33493311+lyndon-unity@users.noreply.github.com>
2024-09-23 22:27:03 +02:00
Alex Tyrer f1458e3b8a
FIX: Fixed potential crash on Mac when using stale references to deleted InputDevice objects (case ISXB-606) (#2009)
* [InputSystem] Fixed potential crash on Mac when using stale references to deleted InputDevice objects (case ISXB-606)

o Stale InputDevice references were resulting in random memory accesses.
o On Mac some invalid memory accesses (to kernel reserved VM ranges) cannot be caught by the application - the kernel will terminate the process instead.
o Add deviceIndex checks when accessing DoubleBuffers front/back buffers to avoid reading random memory.

* Change currentStatePtr null check.
2024-09-23 09:50:37 +01:00
bmalrat 008f573c27
FIX: ISXB-1081 Fixed "MissingReferenceException" errors when closing an in-game dropdown field (#2010) 2024-09-20 12:01:34 -04:00
bmalrat 2934a646dc
FIX: Action Maps contextual menu in Action Editor UI that could display unrelated items. (#2008)
* Fixed Action Maps contextual menu in Action Editor UI that could display unrelated items.

* reworked to reduce allocation
2024-09-20 11:50:23 +03:00
adrian-koretski-unity3d ddc99caf57
CHANGE: Removed aliased values in Gamepad enum. (ISXB-543) (#1983)
* ISXB-543   Implemented custom drawer base for enums as well as on specific to gamepad buttons. Also removed aliased values in GamepadButton enum

* Removed custom enum drawer.

* Added changes to changelog.

* Re-added aliased enums into GamepadButton for compatibility with existing projects. Added custom aliased enum drawer base and custom enum drawer for GamepadButton to hide aliased values.

* Ran the formatter on commit changes.

* Revert "ISXB-543   Implemented custom drawer base for enums as well as on specific to gamepad buttons. Also removed aliased values in GamepadButton enum"

This reverts commit 110e5c6df1.

# Conflicts:
#	Packages/com.unity.inputsystem/InputSystem/Editor/PropertyDrawers/AliasedEnumPropertyDrawer.cs.meta
#	Packages/com.unity.inputsystem/InputSystem/Editor/PropertyDrawers/GpadButtonPropertyDrawer.cs.meta

* Reworked GpadButtonPropertyDrawer according to feedback.

Removed general AliasedEnumPropertyDrawer script.

* Fixed GamepadButtonPropertyDrawer issues based on PR feedback.

-Renamed GpadButtonPropertyDrawer to GamepadButtonPropertyDrawer.
-Fixed nullref issue caused by m_EnumDisplayNames being reset when entering/exiting play mode.
-Simplified code for setting up enum list.
-Updated CHANGELOG.md

* Moved changelog entry for ISXB-543 into correct version and added link to jira.

* Changed jira link in changelog for ISXB-543 to public issue tracker.
2024-09-19 11:01:38 -04:00
Håkan Sidenvall 7f5528ba6a
FIX: Fixed a memory leak in OnScreenStick (#2006) 2024-09-16 13:45:34 +02:00
bmalrat 7a28d7b061
FIX: Fixed multiple interactions on composite bindings (ISXB-619) (#2000)
* Fixed multiple interactions on composite bindings
2024-09-13 12:08:26 -04:00
Alex Tyrer d5cc3fd645
FIX: Fix for generic DualShock4 InputDeviceMatcher claiming DualSense devices too (ISX-1411)
FIX: Fixed DualSense controllers being recognized as DualShock4 (ISX-1411)

* [InputSystem] Fix for generic DualShock4 InputDeviceMatcher claiming DualSense devices too!

o The generic DualShock4GamepadHID InputDeviceMatcher would erroneously claim to
match DualSense devices based on the simplistic count of how many properties match.

o The previous regex removal change added another WithManufacturerContains() which
increased their score when comparing against DualSense controllers making the DualShock4
the best match.

o Removing the additional property match restores the original behaviour.

o DualShock3GamepadHID has also been fixed here.

o These generic matchers are problematic and were only added to work around a defect in an
older version of OSX when connecting over Bluetooth where no product or vendor were reported.
This defect is no longer present on MacOS but these matchers are kept to support off-brand devices.

o Ideally we could weight VID and PID properties more heavily.

* Added CHANGELOG entry for FIX: DualSense controllers being recognized as DualShock4
2024-09-12 16:43:46 +01:00
James McGill 97ab628312
fix changelog after merge (#2005) 2024-09-12 16:32:09 +02:00
James McGill 2f51783947
CHANGE: rename editor resource directories (ISX-1440) (#1997)
Co-authored-by: Paulius Dervinis <54306142+Pauliusd01@users.noreply.github.com>
2024-09-12 15:35:12 +02:00