summaryrefslogtreecommitdiff
path: root/wrapper/input.cpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-09-06 23:24:51 -0400
committera1xd <[email protected]>2021-09-23 22:33:13 -0400
commita8d48325d5e6fe0466502b865c82317b6f7410a2 (patch)
treea1d42734cda76cdf2a0b0c8134ef25f4729e99b3 /wrapper/input.cpp
parentincrease lut points capacity to 257 (diff)
downloadrawaccel-a8d48325d5e6fe0466502b865c82317b6f7410a2.tar.xz
rawaccel-a8d48325d5e6fe0466502b865c82317b6f7410a2.zip
get grapher building
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 {