Detecting a mouse and/or keyboard

I’d like to be able to detect a mouse and/or a keyboard from my sysinit
file. Any suggestions on how this is done would be appreciated.

Thanks,

Kevin
kevin.miller@transcore.com

Duh, forgot to mention, this is QNX 4.24 and above, and the keyboard and
mouse would be attached to the PS2 ports on an Intel motherboard.

“Kevin Miller” <kevin.miller@transcore.com> wrote in message
news:am3gmf$po3$1@inn.qnx.com

I’d like to be able to detect a mouse and/or a keyboard from my sysinit
file. Any suggestions on how this is done would be appreciated.

Thanks,

Kevin
kevin.miller@transcore.com

mousetrap?

Kevin Miller wrote:

Duh, forgot to mention, this is QNX 4.24 and above, and the keyboard and
mouse would be attached to the PS2 ports on an Intel motherboard.

“Kevin Miller” <> kevin.miller@transcore.com> > wrote in message
news:am3gmf$po3$> 1@inn.qnx.com> …
I’d like to be able to detect a mouse and/or a keyboard from my sysinit
file. Any suggestions on how this is done would be appreciated.

Thanks,

Kevin
kevin.miller@transcore.com

Actually, I have decided to use “inputtrap query”, using the “-x” option (I
think it is) to stop it from looking for all of the devices I don’t care
about. I can then parse the output to see what it finds. Should work.

“Richard Kramer” <rrkramer@kramer-smilko.com> wrote in message
news:3D865DF6.C10BA05C@kramer-smilko.com

mousetrap?

Kevin Miller wrote:

Duh, forgot to mention, this is QNX 4.24 and above, and the keyboard and
mouse would be attached to the PS2 ports on an Intel motherboard.

“Kevin Miller” <> kevin.miller@transcore.com> > wrote in message
news:am3gmf$po3$> 1@inn.qnx.com> …
I’d like to be able to detect a mouse and/or a keyboard from my
sysinit
file. Any suggestions on how this is done would be appreciated.

Thanks,

Kevin
kevin.miller@transcore.com

Kevin Miller wrote:

Actually, I have decided to use “inputtrap query”, using the “-x” option (I
think it is) to stop it from looking for all of the devices I don’t care
about. I can then parse the output to see what it finds. Should work.

“Richard Kramer” <> rrkramer@kramer-smilko.com> > wrote in message
news:> 3D865DF6.C10BA05C@kramer-smilko.com> …

mousetrap?

Actually, mousetrap is simply a link to inputtrap :slight_smile:

Rennie