Raw mouse data

G

Guest

I am using a Windows Mobile 5 system where a Bluetooth nouse is embeddd in a
device to provide interaction between the two. Because the mouse doesn't
move, there is no X,Y aspect to the mouse. I only want the wheel and button
functions. The problem is that it appears that the mouse starts above the
WM5 Start menu. When you click it, it activates the statrt menu.

I can assign the button clicks to apps to resolve some aspects but the wheel
doesn't show.
What to get The Y value.

Can write a C++ app to track raw aspects of the mouse but I am programming
the app using Compact Framework2 (C#, VB andC++)

Any ideas on how to get at the mouse in a raw manner.
Happy with PInvoke.

ie a Native DLL etc

Options may be
-Rewrite the driver.. not pratical
-Get some hooks into the underlying windows system
- Tap into the driver's Stream. Looking at registry, it seems that the
device uses a a stream class.

One question, is it possible to programmatically change the position of the
a/the mose?

PS: Posting to the CE PB ng as well.

Thx for any help
--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318
 
P

Paul G. Tobey [eMVP]

You can call SetCursorPos() to move the cursor without any real user input.
You'll have to P/Invoke it, of course.

I don't understand the following comment, "the wheel doesn't show". Doesn't
show what? When the user taps the wheel, WM_MOUSEWHEEL messages are sent to
the window with focus, which, if it doesn't process them, passes them to the
parent of that window, etc. You should be able to use something like
OpenNETCF's IMessageFilter/ApplicationEx to get to the messages. If there's
a scroll bar involved, that should do the right thing automatically, I would
think...

Paul T.
 
G

Guest

Thanks for the quick reply.
I'll follow up on your suggestions.
By, the wheel doesn't show I mean that in CF code it doesn't show up on any
form events.
--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top