Skip to content

Instantly share code, notes, and snippets.

View drhaynes's full-sized avatar

David Haynes drhaynes

  • MBP Consulting Ltd
  • UK
View GitHub Profile
@drhaynes
drhaynes / TouchScriptInputModule.cs
Last active June 23, 2016 08:37 — forked from simonbroggi/TouchScriptInputModule.cs
Input Module to use Unity UI with multitouch gestures from https://github.com/TouchScript version 8
/**
* Input Module to use Unity UI with multitouch from https://github.com/TouchScript
*
* Usage instructions:
* Install TouchScript in your unity project, then add an EventSystem and replace the InputModules by this one.
*
*
* Basically a modified TouchInputModule from
* https://bitbucket.org/Unity-Technologies/ui/src/5fc21bb4ecf4b40ff6630057edaa070252909b2e/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs?at=4.6
* with ProcessTouchEvent changed to take events from TouchScript