Unity Abstract Input
C#
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Resources
ITouch.cs
Mikko.cs
MikkoConfig.cs
MouseTouch.cs
README.md
SmartPhoneTouch.cs
TouchInfo.cs
koinonia.config.json

README.md

Mikko

Editor/スマホのタッチ動作を抽象化したラッパー

使い方

UniRXのインストールが必要です

using UnityEngine;
using System.Collections;
using GuP;

public class Hoge : MonoBehaviour {
    void Update () {
        ITouch t = Mikko.input.touch;
        print(t.position);
        print(t.deltaPosition);
        print(t.info); // None, Began, Moved, Ended, Stationary
    }
}