Skip to content
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

FIX: ISXB-766, ISXB-808, ISXB-704 scroll wheel factor bugs #1940

Closed
wants to merge 2 commits into from

Conversation

benoitalain
Copy link
Collaborator

@benoitalain benoitalain commented May 27, 2024

Description

Fixes ISXB-766, ISXB-808, ISXB-704, conditionally to trunk PR landing beforehand.

Details of what was changed and the thought process can be found in this Google Document:
https://docs.google.com/document/d/1XCC6GqaWzKf1M1jm-UmKRn6sIlmvF7rvF1C8Ws5Yxa4/edit?usp=sharing

Changes made

Please write down a short description of what changes were made.

Notes

Please write down any additional notes, remove the section if not applicable.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • FogBugz ticket attached, example ([case %number%](https://issuetracker.unity3d.com/issues/...)).
    • FogBugz is marked as "Resolved" with next release version correctly set.
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

@unity-cla-assistant
Copy link

unity-cla-assistant commented May 27, 2024

CLA assistant check
All committers have signed the CLA.

@benoitalain benoitalain changed the title Fixed ISXB-766, ISXB-808, ISXB-704, conditional to trunk PR #49932. FIX: ISXB-766, ISXB-808, ISXB-704 scroll wheel factor bugs May 27, 2024
@Pauliusd01

This comment was marked as resolved.

@benoitalain
Copy link
Collaborator Author

Getting these errors when opening the main test repo (open the main repo as a unity project):

Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(287,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'allowPlatformSpecificInputForScrollWheelDelta'
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(288,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'allowPlatformSpecificInputForScrollWheelDelta'
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(297,44): error CS0117: 'NativeInputSystem' does not contain a definition for 'GetScrollWheelDeltaPerTick'
Packages\com.unity.inputsystem\InputSystem\Plugins\UI\InputSystemUIInputModule.cs(2076,48): error CS0103: The name 'scrollWheelDeltaPerTick' does not exist in the current context

Indeed. You need to use the trunk branch uitech/bugfix/isxb-776-fix-scrollwheelfactoruniformity to make it compile. Once the trunk PR lands, this one should be easier to test.

@Pauliusd01
Copy link
Collaborator

Getting these errors when opening the main test repo (open the main repo as a unity project):

Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(287,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'allowPlatformSpecificInputForScrollWheelDelta'
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(288,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'allowPlatformSpecificInputForScrollWheelDelta'
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(297,44): error CS0117: 'NativeInputSystem' does not contain a definition for 'GetScrollWheelDeltaPerTick'
Packages\com.unity.inputsystem\InputSystem\Plugins\UI\InputSystemUIInputModule.cs(2076,48): error CS0103: The name 'scrollWheelDeltaPerTick' does not exist in the current context

Indeed. You need to use the trunk branch uitech/bugfix/isxb-776-fix-scrollwheelfactoruniformity to make it compile. Once the trunk PR lands, this one should be easier to test.

Ah my bad, kinda throws CI off too then. Should this be delayed until trunk PR + backports merge?

@benoitalain
Copy link
Collaborator Author

Getting these errors when opening the main test repo (open the main repo as a unity project):

Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(287,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'allowPlatformSpecificInputForScrollWheelDelta'
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(288,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'allowPlatformSpecificInputForScrollWheelDelta'
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(297,44): error CS0117: 'NativeInputSystem' does not contain a definition for 'GetScrollWheelDeltaPerTick'
Packages\com.unity.inputsystem\InputSystem\Plugins\UI\InputSystemUIInputModule.cs(2076,48): error CS0103: The name 'scrollWheelDeltaPerTick' does not exist in the current context

Indeed. You need to use the trunk branch uitech/bugfix/isxb-776-fix-scrollwheelfactoruniformity to make it compile. Once the trunk PR lands, this one should be easier to test.

Ah my bad, kinda throws CI off too then. Should this be delayed until trunk PR + backports merge?

We can wait for trunk PR to merge, but the trunk PR is only useful as a support for this one, so if this one doesn't do what we want then we'll need to land more changes to trunk and iterate like that. It might be useful to quickly confirm that both PRs together yield the expected results, so we know we're pushing the right thing to trunk.

You can definitely wait until the trunk PR is fully reviewed and approved, though.

@Pauliusd01
Copy link
Collaborator

Pauliusd01 commented May 30, 2024

Still seeing these errors when opening it with the correct Editor (project does not matter):
Packages\com.unity.inputsystem\InputSystem\NativeInputRuntime.cs(287,38): error CS0117: 'NativeInputSystem' does not contain a definition for 'normalizeScrollWheelDelta'
Editor used:

Unity 6 Preview
6000.0.3f1.6088.uitech/bugfix/isxb-776-fix-scrollwheelfactoruniformity.2
Revision: uitech/bugfix/isxb-776-fix-scrollwheelfactoruniformity 49158e0bb68d
Built: Thu, 23 May 2024 17:49:35 GMT

@benoitalain
Copy link
Collaborator Author

49158e0bb68d

Indeed, I just pushed a new commit on the trunk PR (and one on the package PR to go with it). You now need 5f81a20dcb6835c956b03762e95e013d9dd9e30d for your Editor.

@benoitalain
Copy link
Collaborator Author

Closing this PR in favor of #1946 and https://github.cds.internal.unity3d.com/unity/neutron/pull/7629

@benoitalain benoitalain closed this Jun 4, 2024
@benoitalain benoitalain deleted the isxb-776-fix-scrollwheelfactoruniformity branch July 29, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants