wheel mouse minidriver

wheel mouse minidriver

[ Follow Ups ] [ Post Followups ] [ FAQ ]
[ Back to Messages ]

Posted by John Gong on July 17, 2001 at 05:05:11:

I am writing a mice minidriver and mouse hook vxd now, which will suport wheel mouse.
Now I have some question:
1. how to detect the wheel message in my hook function?
2. how to process the wheel message data (include wheel_delta) in minidriver code?

In hook function,I use VMD_Manipulate_Pointer_Message to hook myMPM_HOOK function, but I can process delta
data, code as fellow:

m_px=(DWORD)regs->RESI; //ESI
m_py=(DWORD)regs->REDI; //EDI
m_delta=(DWORD)regs->RECX; //ECX
m_buttonStatus=(BYTE)(regs->REAX); //EAX

I don't know to to detect the wheel message;

In minidriver program, I use this function:
0, // no ref data
MyEventCallback, // routine to call
0, // no timeout
&MyEventThunk) ;

in MyEventCallback, I Only can modify those regs:
pcrs->CWRS.Client_AX = (WORD)m_mouse.m_btnstatus
pcrs->CWRS.Client_BX = (WORD)m_mouse.m_px;
pcrs->CWRS.Client_CX = (WORD)m_mouse.m_py;
pcrs->CWRS.Client_DX = 0x2; // Button Count
pcrs->CWRS.Client_DI = 0x0; // Must be 0
pcrs->CWRS.Client_SI = 0x0; // Must be 0
how I do with the mouse wheel and dalta?

can you help me?

Follow Ups:

Post a Followup

Please note:
  • Messages must be on the topic of this forum!
  • No posting of requests for cracks, codes, serials, or warez!
  • No posting of illegal software or links to such sites!
  • No use of profanity or inappropriate or offensive language!
  • Spamming is not allowed!
  • We track the IP addresses of forum abusers!
  • Abuse of this forum will be reported to your ISP!
E-Mail (optional):
please note: your e-mail address will be visible in your message.



Optional Link URL:
Link Title:
Optional Image URL: