Git Product home page Git Product logo

press-and-repeat-interaction's Introduction

Press and repeat interaction

This interaction allows you to generate Input System events to manage a held key. "Press" event can be activate to also generate an event on pressing the binding.

This interaction was developed with Unity 2021.3.10f1 and Input System 1.4.4

How to install

You can copy PressAndRepeatInteraction.cs script everywhere in your project folder. But preferably correctly oragnized. For exemple, in Interactions folder.

How to use

You just have to add the interaction on your action (or binding) with the + and select Press And Repeat. Then you have to adjust parameters on your convenience.

Parameters

  • Press : Used to activate press event. It's send on pressing. Just like normal action.
  • Hold Time : Used to consider binding held, and send a second event.
  • Repeating Time : Used to send next events with a constant time interval.

press-and-repeat-interaction's People

Contributors

thundertecke avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

r2d2m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.