From 0ab38e09a53697c9083f6da8cc65c40e6d17c3bb Mon Sep 17 00:00:00 2001
From: Laggamer2005 <158077584+Laggamer2005@users.noreply.github.com>
Date: Sat, 7 Dec 2024 11:24:43 +0000
Subject: [PATCH] Update Device.h
---
.../include/DualSenseWindows/Device.h | 134 +++++++++---------
1 file changed, 67 insertions(+), 67 deletions(-)
diff --git a/VS19_Solution/DualSenseWindows/include/DualSenseWindows/Device.h b/VS19_Solution/DualSenseWindows/include/DualSenseWindows/Device.h
index fd59cc6..62dcfdd 100644
--- a/VS19_Solution/DualSenseWindows/include/DualSenseWindows/Device.h
+++ b/VS19_Solution/DualSenseWindows/include/DualSenseWindows/Device.h
@@ -1,82 +1,82 @@
/*
- Device.h is part of DualSenseWindows
- https://github.com/Ohjurot/DualSense-Windows
+ Device.h is part of DualSenseWindows
+ https://github.com/Ohjurot/DualSense-Windows
- Contributors of this file:
- 11.2020 Ludwig Füchsl
+ Contributors of this file:
+ 11.2020 Ludwig Füchsl
- Licensed under the MIT License (To be found in repository root directory)
+ Licensed under the MIT License (To be found in repository root directory)
*/
#pragma once
namespace DS5W {
- ///
- /// Enum for device connection type
- ///
- typedef enum class _DeviceConnection : unsigned char {
- ///
- /// Controler is connected via USB
- ///
- USB = 0,
+ ///
+ /// Enum for device connection type
+ ///
+ enum class DeviceConnection : unsigned char {
+ ///
+ /// Controller is connected via USB
+ ///
+ USB = 0,
- ///
- /// Controler is connected via bluetooth
- ///
- BT = 1,
- } DeviceConnection;
+ ///
+ /// Controller is connected via Bluetooth
+ ///
+ BT = 1,
+ };
- ///
- /// Struckt for storing device enum info while device discovery
- ///
- typedef struct _DeviceEnumInfo {
- ///
- /// Encapsulate data in struct to (at least try) prevent user from modifing the context
- ///
- struct {
- ///
- /// Path to the discovered device
- ///
- wchar_t path[260];
+ ///
+ /// Struct for storing device enum info during device discovery
+ ///
+ struct DeviceEnumInfo {
+ ///
+ /// Encapsulate data in struct to (at least try to) prevent user from modifying the context
+ ///
+ struct {
+ ///
+ /// Path to the discovered device
+ ///
+ wchar_t path[260];
- ///
- /// Connection type of the discoverd device
- ///
- DeviceConnection connection;
- } _internal;
- } DeviceEnumInfo;
+ ///
+ /// Connection type of the discovered device
+ ///
+ DeviceConnection connection;
+ } _internal;
+ };
- ///
- /// Device context
- ///
- typedef struct _DeviceContext {
- ///
- /// Encapsulate data in struct to (at least try) prevent user from modifing the context
- ///
- struct {
- ///
- /// Path to the device
- ///
- wchar_t devicePath[260];
+ ///
+ /// Device context
+ ///
+ struct DeviceContext {
+ ///
+ /// Encapsulate data in struct to (at least try to) prevent user from modifying the context
+ ///
+ struct {
+ ///
+ /// Path to the device
+ ///
+ wchar_t devicePath[260];
- ///
- /// Handle to the open device
- ///
- void* deviceHandle;
+ ///
+ /// Handle to the open device
+ ///
+ void* deviceHandle;
- ///
- /// Connection of the device
- ///
- DeviceConnection connection;
+ ///
+ /// Connection of the device
+ ///
+ DeviceConnection connection;
- ///
- /// Current state of connection
- ///
- bool connected;
+ ///
+ /// Current state of connection
+ ///
+ bool connected;
- ///
- /// HID Input buffer (will be allocated by the context init function)
- ///
- unsigned char hidBuffer[547];
- }_internal;
- } DeviceContext;
-}
\ No newline at end of file
+ ///
+ /// HID Input buffer (will be allocated by the context init function)
+ ///
+ unsigned char hidBuffer[547];
+ } _internal;
+ };
+}