Skip to content

Conversation

@jfreire-unity
Copy link
Collaborator

Description

Dispatches NavigationEvents such as Left, Right, Up, Down for both Mouse and Keyboard, as they are part of the _moveAction setup by the default input actions asset.
Next and Previous currently are only setup for Keyboard, as there is not default action that has tab bindings. A new action was created for this.

Notes

If this approach works and is good enough for now, I'll refactor the code a bit to avoid having less repetition for NavigationEvents in both InputManagerProvider (not part of this repository) and InputSystemProvider.

@jfreire-unity jfreire-unity marked this pull request as ready for review April 5, 2023 12:00
@jfreire-unity jfreire-unity changed the title Add dispatch of navigation events Add dispatch of navigation events for InputForUI Apr 5, 2023
Copy link

@benoit-alain benoit-alain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, we can continue adding on this if something's missing (next/previous repeat?).

@jfreire-unity jfreire-unity merged commit 3bd2e4d into dmytro/common-input-api-for-ui Apr 5, 2023
@jfreire-unity jfreire-unity deleted the joao/input-for-ui-isx-navigation-events branch April 5, 2023 16:33
jfreire-unity added a commit that referenced this pull request Apr 12, 2023
* Add dispatch of navigation events

* Fix formatting

* Unifies GetEventSource() for callback context and devices

* Use DispatchFromCallback and clean todos
jfreire-unity added a commit that referenced this pull request May 23, 2023
* Adding dependency to a provider package

* wip

* wip

* wip

* wip

* wip

* wip

* sorting of events and filtering of pointer events

* pointer indices

* more robust scroll events

* forgot to reset state flags

* trying out to use touchscreen for finger index

* removing leftovers

* Add dispatch of navigation events for InputForUI (#1667)

* Add dispatch of navigation events

* Fix formatting

* Unifies GetEventSource() for callback context and devices

* Use DispatchFromCallback and clean todos

* InputForUI: Add repetition for Next/Previous navigation events (#1670)

* Update renaming of Event.CompareType

* Add Next/Previous navigation events repetition

Currently it doesn't deal with keys other than tab and shift+tab. Discussion needs to happen to allow configuration for this with the Input System.

* Set seenTouchEvents and seenTouchEvents for missing control paths and events (#1674)

* fix compilation errors when opening InputSystem project

* fix compilation errors when opening project in older editors

* Bootstrap InputForUI provider only if enabled in the PlayerSettings (ISX-1386)

* Fix null reference errors by not initializing InputForUI in the editor (ISX-1397)

* Fix to avoid PointerEvents from Mouse when using Touch

* Reverse bool logic of resetSeenEventsOnUpdate

* Remove debug logs

* Fix PointerEvents with same pointerIndex for all fingers

* fix InputForUI not being bootstrapped in IL2CPP builds (ISX-1424)

* fix for deprecated warning

* fix for unused variable warning

* run formatting tool

* modify naming to conform to coding convention

* fix for running tests in standalone builds

* Remove commented code and add missing comment

---------

Co-authored-by: Dmytro Ivanov <dmytro@unity3d.com>
Co-authored-by: João <joao.freire@unity3d.com>
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.

4 participants