123456789101112131415161718192021222324252627282930313233 |
- using System;
- using UnityEngine;
- public sealed class OVRTouchpadHelper : MonoBehaviour
- {
- private void Awake()
- {
- UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
- }
- private void Start()
- {
- OVRTouchpad.TouchHandler += this.LocalTouchEventCallback;
- }
- private void Update()
- {
- OVRTouchpad.Update();
- }
- public void OnDisable()
- {
- OVRTouchpad.OnDisable();
- }
- private void LocalTouchEventCallback(object sender, EventArgs args)
- {
- OVRTouchpad.TouchArgs touchArgs = (OVRTouchpad.TouchArgs)args;
- switch (touchArgs.TouchType)
- {
- }
- }
- }
|