AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
XboxControllerData.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 namespace HoloToolkit.Unity.InputModule
5 {
9  public struct XboxControllerData
10  {
11  public string GamePadName { get; set; }
12 
13  public float XboxLeftStickHorizontalAxis { get; set; }
14  public float XboxLeftStickVerticalAxis { get; set; }
15  public float XboxRightStickHorizontalAxis { get; set; }
16  public float XboxRightStickVerticalAxis { get; set; }
17  public float XboxDpadHorizontalAxis { get; set; }
18  public float XboxDpadVerticalAxis { get; set; }
19  public float XboxLeftTriggerAxis { get; set; }
20  public float XboxRightTriggerAxis { get; set; }
21  public float XboxSharedTriggerAxis { get; set; }
22 
23  public bool XboxA_Pressed { get; set; }
24  public bool XboxB_Pressed { get; set; }
25  public bool XboxX_Pressed { get; set; }
26  public bool XboxY_Pressed { get; set; }
27  public bool XboxLeftBumper_Pressed { get; set; }
28  public bool XboxRightBumper_Pressed { get; set; }
29  public bool XboxLeftStick_Pressed { get; set; }
30  public bool XboxRightStick_Pressed { get; set; }
31  public bool XboxView_Pressed { get; set; }
32  public bool XboxMenu_Pressed { get; set; }
33 
34  public bool XboxA_Up { get; set; }
35  public bool XboxB_Up { get; set; }
36  public bool XboxX_Up { get; set; }
37  public bool XboxY_Up { get; set; }
38  public bool XboxLeftBumper_Up { get; set; }
39  public bool XboxRightBumper_Up { get; set; }
40  public bool XboxLeftStick_Up { get; set; }
41  public bool XboxRightStick_Up { get; set; }
42  public bool XboxView_Up { get; set; }
43  public bool XboxMenu_Up { get; set; }
44 
45  public bool XboxA_Down { get; set; }
46  public bool XboxB_Down { get; set; }
47  public bool XboxX_Down { get; set; }
48  public bool XboxY_Down { get; set; }
49  public bool XboxLeftBumper_Down { get; set; }
50  public bool XboxRightBumper_Down { get; set; }
51  public bool XboxLeftStick_Down { get; set; }
52  public bool XboxRightStick_Down { get; set; }
53  public bool XboxView_Down { get; set; }
54  public bool XboxMenu_Down { get; set; }
55  }
56 }
Data class that carries the input data for the event handler.