summaryrefslogtreecommitdiff
path: root/wrapper/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/input.cpp')
-rw-r--r--wrapper/input.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/wrapper/input.cpp b/wrapper/input.cpp
index e34af4a..334a0ec 100644
--- a/wrapper/input.cpp
+++ b/wrapper/input.cpp
@@ -25,11 +25,12 @@ public ref struct MultiHandleDevice {
System::String^ id;
List<System::IntPtr>^ handles;
- // Each element in the list returned has a distinct id
+ // Returned list represents the current connected raw input devices,
+ // where each device has a distinct device id
// https://docs.microsoft.com/en-us/windows-hardware/drivers/install/device-ids
- static List<MultiHandleDevice^>^ GetList()
+ static IList<MultiHandleDevice^>^ GetList()
{
- return ListMaker::MakeList();
+ return ListMaker::MakeList()->AsReadOnly();
}
ref class ListMaker {