We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using the HEAD version from the SVN. I believe that the following solution is better. DeviceRI.cpp void Device::RegisterDevice( SlimDX::Multimedia::UsagePage usagePage, SlimDX::Multimedia::UsageId usageId, DeviceFlags flags, IntPtr target, bool addThreadFilter ) { RAWINPUTDEVICE device; device.usUsagePage = static_cast<USHORT>( usagePage ); device.usUsage = static_cast<USHORT>( usageId ); device.dwFlags = static_cast<DWORD>( flags ); device.hwndTarget = static_cast<HWND>( target.ToPointer() ); if( RegisterRawInputDevices( &device, 1, sizeof(RAWINPUTDEVICE) ) <= 0 ) throw gcnew Win32Exception(); if (addThreadFilter) { if( filter == nullptr) filter = gcnew InputMessageFilter(); Application::AddMessageFilter( filter ); } }
Original issue reported on code.google.com by [email protected] on 1 Feb 2013 at 10:15
[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Original issue reported on code.google.com by
[email protected]
on 1 Feb 2013 at 10:15The text was updated successfully, but these errors were encountered: