Raw Input Patch Update 16

Vincas Miliūnas vincas.miliunas at gmail.com
Mon Jul 11 17:53:37 CDT 2011


This time submitting the full implementation to wine-devel and only the
first patch to wine-patches.

Changelog of the full implementation:
* Rewritten test assertion messages to just state the reason of failure
* Improved WM_INPUT posting, so it would be reflected using the
GetQueueStatus function
* Added proper GetRawInputBuffer implementation, that requires selecting
and removing messages from the message queue, but that's how it works
* Added releasing of allocated resources for raw input when destroying a
process
* Fixed DefRawInputProc to return -1 in case of an error instead of an
error code. Also improved function's tests
* Added tests and made RegisterRawInputDevices atomic, so there would be
no changes if one of submitted registrations fails
* Added tests to check for the correct GetQueueStatus(QS_RAWINPUT) status
* Added tests to check for empty input queue before sending input using
GetInputState
* Tests of GetRegisteredRawInputDevices and RegisterRawInputDevices need
to be paired and have both as a dependency, so split their tests into 4
parts to make smaller blocks of code
* Moved raw input server request handlers to the bottom of the source
file, like in the other files
* Applied aligned formatting for groups of assignment statements
* Other minor refactorings

Zipped version - http://dl.dropbox.com/u/6901628/try16.zip

Also I need to note the lack of applications that make extensive use of
the raw input API. There are just a few games and they are convenient
with just the mouse movement data.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-user32-tests-Added-DefRawInputProc-tests-try-16.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0010.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-user32-tests-Added-GetRawInputDeviceList-tests-try-1.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0010.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-user32-tests-Added-GetRawInputDeviceInfoW-tests-try-.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0011.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0004-user32-tests-Added-GetRawInputDeviceInfoA-tests-try-.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0011.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005-user32-tests-Added-basic-GetRegisteredRawInputDevice.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0012.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006-user32-tests-Added-basic-RegisterRawInputDevices-tes.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0012.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0007-user32-tests-Added-raw-input-device-flag-preconditio.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0013.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0008-user32-tests-Added-extended-RegisterRawInputDevices-.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0013.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009-user32-tests-Added-basic-GetRawInputData-tests-try-1.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0014.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0010-user32-tests-Added-basic-GetRawInputBuffer-tests-try.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0014.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0011-user32-tests-Added-raw-input-simulation-tests-try-16.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0015.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0012-user32-Added-DefRawInputProc-implementation-try-16.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0015.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0013-server-user32-Added-GetRawInputDeviceList-implementa.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0016.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0014-server-user32-Added-GetRawInputDeviceInfoW-implement.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0016.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0015-user32-Added-GetRawInputDeviceInfoA-implementation-t.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0017.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0016-server-user32-Added-GetRegisteredRawInputDevices-imp.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0017.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0017-server-user32-Added-RegisterRawInputDevices-implemen.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0018.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0018-server-user32-Added-GetRawInputData-implementation-t.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0018.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0019-server-user32-Added-GetRawInputBuffer-implementation.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0019.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0020-server-user32-Added-RIDEV_NOLEGACY-raw-input-device-.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110712/6403b5ad/attachment-0019.txt>


More information about the wine-devel mailing list