Why you are using some kind of DLL to access an USB mouse instead of using the Delphi mouse events that use the Windows API?
The
mcHID DLL is for accessing USB devices on a low level.
I have not used Delphi so far, but a quick research shows that there is an
OnMouseMove
event. If you need to get the position anywhere on your screen (
OnMouseMove
is only called when the mouse is over the window handling it), you can poll the position (e.g. using a timer) and call
Mouse.CursorPos
.
[UPDATE]
Quote (from comment posted as solution due to comments not working):
thank you, may be i should explain that i am building a USB Interface with PIC microcontroller to send and receive data, and i am testing the software on my USB mouse.
I noticed that the Notify_Read never sends anything that is why i want to know if the USB mouse does not activate it or what?
many thanks for the reply.
The mouse is probably active (I guess you are using it). But that might be the problem: The events are handled by the Windows driver and are not passed through to the DLL.
I know that the comment option is actually not working. But you can edit your question with the green 'Improve question' link to add the new information there.
[/UPDATE]