NDEVR
API Documentation
DualSenseDevice.h
1#pragma once
2
3namespace NDEVR
4{
5 namespace DS5W
6 {
8 enum class DeviceConnection : unsigned char
9 {
10 USB = 0,
11 BT = 1,
12 };
13
17 typedef struct _DeviceEnumInfo {
21 struct {
25 wchar_t path[260];
26
30 DeviceConnection connection;
31
32 bool is_edge_controller = false;
34 [[nodiscard]] bool isEdgeModel() const { return _internal.is_edge_controller; }
35 } DeviceEnumInfo;
36
40 typedef struct _DeviceContext {
44 struct {
48 wchar_t devicePath[260];
49
54
58 DeviceConnection connection;
59
64
68 unsigned char hidBuffer[547];
69
70 bool is_edge;
72 bool isEdgeModel() const { return _internal.is_edge; }
73 } DeviceContext;
74 }
75}
The primary namespace for the NDEVR SDK.
bool connected
Current state of connection.
struct DS5W::_DeviceContext::@317333245037375223174316144362207355344043353250 _internal
Encapsulate data in struct to (at least try) prevent user from modifing the context.
void * deviceHandle
Handle to the open device.
unsigned char hidBuffer[547]
HID Input buffer (will be allocated by the context init function).
wchar_t devicePath[260]
Path to the device.
DeviceConnection connection
Connection of the device.
Struckt for storing device enum info while device discovery.
DeviceConnection connection
Connection type of the discoverd device.
wchar_t path[260]
Path to the discovered device.
struct DS5W::_DeviceEnumInfo::@146063117311120101156345312036153166012377165311 _internal
Encapsulate data in struct to (at least try) prevent user from modifing the context.