Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

New Input System Gesture support

Discussion in 'Input System' started by Thimo_, Aug 3, 2020.

  1. Thimo_

    Thimo_

    Joined:
    Aug 26, 2019
    Posts:
    59
    @Rene-Damm ,

    I have a few questions regarding the development of touch gestures for the new inputsystem.

    How will the gestures work exactly?

    Is the swipe gesture going to work exactly as an Android swipe so that I can attach an UI burger menu to it?

    Will the gestures replace the manual calculation of a swipe thats currently in the old input system?
     
  2. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Too early to say exactly.

    Unfortunately, too early for me to offer anything but some vague ideas. There's the notion that gestures are basically interactions as found in the action system. But that the recognition of these interactions is separate from the interactions itself and that input can be sourced more flexibly than ATM. Such that you can have gestures/interactions fed from platform-specific recognizers as well as from custom-built software recognizers.

    How that will be made contextual is still to be decided. In my mind, it's a separate step. The low-level part of surfacing gestural data and the high-level part of contextualizing them -- ideally in a similar way that you can do it, for example, with LeanTouch.

    But this is all super vague and probably not very useful. There's still a couple things to get worked on before gestures (e.g. general action system improvements like a better polling API, stacking of actions, support for setting parameters dynamically, stuff like that).

    Yes.
     
  3. wshigham

    wshigham

    Joined:
    Dec 30, 2019
    Posts:
    14
    @Rene-Damm Do you have any indication of when the swipe support in the new input system will be available? Just wondering whether to code a manual one myself of hold on to a release that is coming soon (or might have dropped already and I didn't spot it). Thanks.
     
    bobbaluba and Thimo_ like this.
  4. jiraphatK

    jiraphatK

    Joined:
    Sep 29, 2018
    Posts:
    251
    it's not anywhere soon I assume from quick look at github project. They are busy building other stuff