Skip to content

apptade/IUInput

Repository files navigation

What is this?

This is an additional input system for the Unity engine, which has different interactions with the input, which you just need to check or subscribe to their change.

Note

This system uses only the new Unity Input System (Package) for now. There are no plans to support the Legacy system yet.

Main differences:

  • Predicate system - you can check incoming input changes and cancel them if necessary.
  • Flexible and unified architecture, created to handle input from different devices, as well as to easily expand your interactions.

Installation

Warning

Requires Unity vesrion > or = 2021.3

Install a UPM package from a Git URL

Follow the official Unity instructions for installing this package, using the following link

https://github.com/apptade/IUInput.git

Note

All samples on how to work with this system are already included.

Existing interactions

Screen interactions

Supported input devices:

  • Mouse and keyboard
  • Everything related to touch (touchscreen, touchpad)

If the input device you need is not here, don't worry, it might appear here very soon

Tracking movement

screen-movement-sample

  • There is a prevention of erroneous movement, useful for touch screen/pad.

Contact/Hold/MultiTap/SlowTap/Tap

screen-contact-sample

Unlike standard interactions here:

  • You can find out where on the screen this interaction occurred.
  • When the pointer is moved sufficiently, the interaction stops.

It is also possible that other non-standard interactions will appear here.

Pinch/Zoom

screen-pinch-sample

  • You can track all ten fingers, that is, as many as five pinch gestures.

Warning

But keep in mind that not all touch screens/pads support tracking of all ten fingers.

Predicates

  • Checking input on the UI, and blocking it if necessary.

This list might be expanded very soon.

Soon

  • Even more interactions.
  • Convenient addition/removal of input predicates.
  • Simple subscription to track changes in any input information.

Author

https://github.com/apptade

Of course, everything that this system can do is not described here, so it is better for you to try it yourself several times than to read it many times.

About

Is fast and extensionally Input system for Unity engine

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages