IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
InputDevice.cs
1 using UnityEngine.EventSystems;
2 using UnityEngine;
3 using System.Collections;
4 using UI;
5 
6 public interface InputDevice {
7 
8  InputDeviceManager.InputDeviceType getDeviceType ();
9 
10  Vector2 getScrollDelta();
11 
12  //Creates a ray (e.g. a mouse device creates a ray from the main camera to the courser on the screen. A vive controller creates a ray from the controller in forward direction)
13  Ray createRay();
14 
15  ButtonInfo updateButtonInfo ();
16 
17  Camera getEventCamera ();
18 
19  Vector2 getTexCoordDelta();
20  Vector3 get3DDelta();
21 
22  void setTexCoordDelta( Vector2 delta );
23  void set3DDelta( Vector2 delta );
24 
25  bool isLeftButtonDown();
26  bool isRightButtonDown();
27  bool isMiddleButtonDown();
28 }