All files / Sources/Rendering/Core/RenderWindowInteractor Constants.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 311x           1x                     1x                          
export const Device = {
  Unknown: 0,
  LeftController: 1,
  RightController: 2,
};
 
export const Input = {
  Unknown: 0,
  Trigger: 1,
  TrackPad: 2,
  Grip: 3,
  Thumbstick: 4,
  A: 5,
  B: 6,
  ApplicationMenu: 7, // Not exposed in WebXR API
};
 
export const Axis = {
  Unknown: 0,
  TouchpadX: 1,
  TouchpadY: 2,
  ThumbstickX: 3,
  ThumbstickY: 4,
};
 
export default {
  Device,
  Input,
  Axis,
};