IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
ButtonInfo.cs
1 using UnityEngine;
2 using UnityEngine.EventSystems;
3 using System.Collections;
4 using System.Collections.Generic;
5 
6 namespace UI {
7 
8  public enum ButtonType
9  {
10  Left,
11  Right,
12  Middle,
13  Trigger
14  }
15 
16  public class ButtonInfo {
17 
18  public Dictionary<ButtonType, PointerEventData.FramePressState> buttonStates = new Dictionary<ButtonType, PointerEventData.FramePressState>();
19 
20 
21  public ButtonInfo()
22  {
23  // Set all buttons to "Not changed" per default:
24  buttonStates[ButtonType.Left] = PointerEventData.FramePressState.NotChanged;
25  buttonStates[ButtonType.Right] = PointerEventData.FramePressState.NotChanged;
26  buttonStates[ButtonType.Middle] = PointerEventData.FramePressState.NotChanged;
27  buttonStates[ButtonType.Trigger] = PointerEventData.FramePressState.NotChanged;
28  }
29  }
30 }