Skip to content

Conversation

@canmor
Copy link

@canmor canmor commented Dec 4, 2013

Pull this branch you'll get some bugs fixed and support Visual Studio, following is a list of changes:

  • Add Visual Studio support. But instead of including Visual Studio project files directly, add a CMake rule file for generating Visual Studio project files (I'd test both 2008 and 2012).
  • Fix some bugs for win32.

  * Fix for no stdint.h support before msvc 10.
  * Fix some syntax errors and logic errors to get codes work with msvc.
  * Kill all warnings of compiling with msvc.
Fix the wrong characters count of TCHAR string, that produce unnecessary characters at the end of result, might result in wrong result of comparing std::string(s).
The top-level collections were divided into different physical device object (PDO) in Windows (see: http://msdn.microsoft.com/en-us/library/windows/hardware/ff543475(v=vs.85).aspx).
Therefore, there is only one top-level collection, others are sub-collections (see: http://msdn.microsoft.com/en-us/library/windows/hardware/ff542355(v=vs.85).aspx#ddk_link_collection_array_kg).
The device_type::read() would not return while there is no any input, even the device was been closed. It's necessary to add an invalid handle checking before invoking ReadFile to prevent an endless loop.
An usage range is specified by usage minimum and usage maximum items in report descriptor, this range is start from usage minimum and end with usage maximum, but includes usage minimum and usage maximum as well.
Should use overload style WriteFile, and use bufferOutputReport() instead of bufferInputReport()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant