CommonLibSSE (Parapets fork)
InputDevices.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  struct INPUT_DEVICES
6  {
8  {
9  kNone = static_cast<std::underlying_type_t<INPUT_DEVICE>>(-1),
10  kKeyboard = 0,
11  kMouse,
12  kGamepad,
13 #ifdef SKYRIMVR
14  kVivePrimary,
15  kViveSecondary,
16  kOculusPrimary,
17  kOculusSecondary,
18  kWMRPrimary,
19  kWMRSecondary,
20 #endif
21  kVirtualKeyboard,
22 
23  kTotal
24  };
25  };
27 
28 #ifdef SKYRIMVR
29  [[nodiscard]] inline bool IsVRWandDevice(INPUT_DEVICE a_device)
30  {
31  return a_device == INPUT_DEVICE::kVivePrimary ||
32  a_device == INPUT_DEVICE::kViveSecondary ||
33  a_device == INPUT_DEVICE::kOculusPrimary ||
34  a_device == INPUT_DEVICE::kOculusSecondary ||
35  a_device == INPUT_DEVICE::kWMRPrimary ||
36  a_device == INPUT_DEVICE::kWMRSecondary;
37  }
38 #endif
39 }
Definition: AbsorbEffect.h:6
Definition: InputDevices.h:6
INPUT_DEVICE
Definition: InputDevices.h:8