Control Panel Mouse settings shared among mice

hi

I have two devices that both act like PS/2 mice on one computer. I took Doron’s suggestion and used the i8042prt DDK sample to put together the driver for the 2nd device. It’s working fine, but I have one potential issue. The two mouse devices need to have some different mouse settings - they are sufficiently different such that sharing the same settings isn’t sufficient. They are shared because there is only one set of Mouse settings in Control Panel (rather than two for each mouse). Also, these settings can’t be hard-coded in the driver - the user has to be able to configure them.

I can certainly take a look at the i8042 sample code again, but I don’t want to go down a path if you think I’m doomed to fail from the start.

Here’s what I was thinking about (which may or may not work) or maybe you have a better suggestion for me:

  1. Add a control panel applet (or similar application) to allow the user to configure the setting for the device that corresponds to the driver I put together.
  2. Add either a filter driver and add an interface so the app could pass down its settings. Do not pass down settings from the Control Panel / Mouse applet (e.g. complete the IRP with success?) - just complete those IRPs with success.

Or is it possible to add another interface in the i8042-based driver for the application to send down settings?

thanks in advance…
p.s. thanks you all of you who have answered my questions in the past.

You can just create a control device in your i8042 filter driver and
send your settings to that.

However, you should ask yourself what kinds of settings you are planning
on allowing to vary between mice. Very often things that look like they
“obviously” need to be different turn out to really want to be the same
for subtle usability reasons.

Personally I think Microsoft should fully support multiple mice. The
time as come and gone for that, especially in the mobile space.

S. Drasnin wrote:

hi

I have two devices that both act like PS/2 mice on one computer. I took
Doron’s suggestion and used the i8042prt DDK sample to put together the
driver for the 2nd device. It’s working fine, but I have one potential
issue. The two mouse devices need to have some different mouse settings

  • they are sufficiently different such that sharing the same settings
    isn’t sufficient. They are shared because there is only one set of
    Mouse settings in Control Panel (rather than two for each mouse). Also,
    these settings can’t be hard-coded in the driver - the user has to be
    able to configure them.

I can certainly take a look at the i8042 sample code again, but I don’t
want to go down a path if you think I’m doomed to fail from the start.

Here’s what I was thinking about (which may or may not work) or maybe
you have a better suggestion for me:

  1. Add a control panel applet (or similar application) to allow the user
    to configure the setting for the device that corresponds to the driver I
    put together.
  2. Add either a filter driver and add an interface so the app could pass
    down its settings. Do not pass down settings from the Control Panel /
    Mouse applet (e.g. complete the IRP with success?) - just complete those
    IRPs with success.

Or is it possible to add another interface in the i8042-based driver for
the application to send down settings?

thanks in advance…
p.s. thanks you all of you who have answered my questions in the past.


Ray

Most of the settings in the mouse CPL never ever make it to the driver. Stuff like double click times, movement acceleration, etc are all done in win32k.sys at a higher layer. If you look at pnpi8042 or mouser, you will see no IOCTLs which set any information for a mouse, only IOCTLs to retrieve properties.

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of S. Drasnin
Sent: Tuesday, June 13, 2006 1:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Control Panel Mouse settings shared among mice

hi
?
I have two devices that both act like PS/2 mice on one computer. I? took Doron’s suggestion and used the i8042prt DDK sample to put together the driver for the 2nd device. It’s working fine, but I have one potential issue. The two mouse devices need to have some different mouse settings - they are sufficiently different such that?sharing?the same settings isn’t sufficient.? They are shared because there is only one set of Mouse settings in Control Panel (rather than two?for each mouse). Also, these settings can’t be hard-coded in the driver ?- the user has to be able to configure them.
?
I can certainly take a look at the i8042 sample code again, but I don’t want to go down a path if you think I’m doomed to fail from the start.
?
?Here’s what I was thinking about (which may or may not work) or maybe you have a better suggestion for me:

  1. Add a control panel applet (or similar application) to allow the user to configure the setting for the device that corresponds to the driver I put together.
  2. Add either a filter driver and add an interface so the app could?pass down?its settings. Do not pass down settings from the Control Panel / Mouse applet (e.g. complete the IRP with success?) - just complete those IRPs with success.
    ?
    Or is it possible to add another interface in the i8042-based driver for the application to send down settings?
    ?
    thanks in advance…
    p.s. thanks you all of you who have answered my questions in the past.

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

thanks to you and Ray. Good information. (I’m still waiting to find out exactly what settings are the problem. (As a user, I’m not picky enough to notice any issues.) It may be that the issue can be addressed by adjusting the settings available in the driver (like sample rate)).

thanks again!

----- Original Message -----
From: Doron Holanmailto:xxxxx
To: Windows System Software Devs Interest Listmailto:xxxxx
Sent: June 13, 2006 1:39 PM
Subject: RE: [ntdev] Control Panel Mouse settings shared among mice

Most of the settings in the mouse CPL never ever make it to the driver. Stuff like double click times, movement acceleration, etc are all done in win32k.sys at a higher layer. If you look at pnpi8042 or mouser, you will see no IOCTLs which set any information for a mouse, only IOCTLs to retrieve properties.

d

________________________________________
From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.com] On Behalf Of S. Drasnin
Sent: Tuesday, June 13, 2006 1:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Control Panel Mouse settings shared among mice

hi

I have two devices that both act like PS/2 mice on one computer. I took Doron’s suggestion and used the i8042prt DDK sample to put together the driver for the 2nd device. It’s working fine, but I have one potential issue. The two mouse devices need to have some different mouse settings - they are sufficiently different such that sharing the same settings isn’t sufficient. They are shared because there is only one set of Mouse settings in Control Panel (rather than two for each mouse). Also, these settings can’t be hard-coded in the driver - the user has to be able to configure them.

I can certainly take a look at the i8042 sample code again, but I don’t want to go down a path if you think I’m doomed to fail from the start.

Here’s what I was thinking about (which may or may not work) or maybe you have a better suggestion for me:
1) Add a control panel applet (or similar application) to allow the user to configure the setting for the device that corresponds to the driver I put together.
2) Add either a filter driver and add an interface so the app could pass down its settings. Do not pass down settings from the Control Panel / Mouse applet (e.g. complete the IRP with success?) - just complete those IRPs with success.

Or is it possible to add another interface in the i8042-based driver for the application to send down settings?

thanks in advance…
p.s. thanks you all of you who have answered my questions in the past.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256http:

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServerhttp:


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256http:

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServerhttp:</http:></http:></http:></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>