Re: Capturing USB data?




"David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:O%23RWI3sCJHA.3668@xxxxxxxxxxxxxxxxxxxxxxx

"Peter Olcott" <NoSpam@xxxxxxxxxxxxx> wrote in message
news:08duk.25564$9u1.1527@xxxxxxxxxxxxxxx

What I really need to do is to capture every keystroke
and mouse click and also be able to feed these to the
system. I already know how to do this for MS Windows.

I need to generalize this capability across all other
platforms, especially Mac OS X, and Linux. My current
thinking is adapting a keyboard and mouse driver on these
platforms. I would probably start with Intel/Windows
because this is the platform that I am the most familiar
with.
I was thinking that restricting my research to the USB
interface might simplify things since all three platforms
provide this interface.

But, as Joe points out, not every input device connected
to a USB port is a mouse or a (QWERTY) keyboard. My MIDI
(piano) keyboard is just one other example. Given that
USB drivers cleverly sort it all out for you, and the
system gets the right signals whether they be MIDI, mouse,
or QWERTY, doing it yourself would seem to be reinventing
a rather complex wheel.

It sounds like you need a cross-platform development
library. I have never used one, but lots of people
happily use my Windows software on Linux under WINE.

Except that Linux does not seem to support mouse hooks at
all.


Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm


.



Relevant Pages

  • Re: Lack of PS2 port prevents installation of XP
    ... installing a PS/2 port for a keyboard myself. ... Enter key on the keyboard will also work. ... and they have learned to enable lagacy USB support in the BIOS ... The problem always occurs when I enter the Windows XP installation disk ...
    (microsoft.public.windowsxp.general)
  • Re: Capturing USB data?
    ... I need to generalize this capability across all other platforms, especially Mac OS X, and Linux. ... I was thinking that restricting my research to the USB interface might simplify things since all three platforms provide this interface. ... But, as Joe points out, not every input device connected to a USB port is a mouse or a keyboard. ... but lots of people happily use my Windows software on Linux under WINE. ...
    (microsoft.public.vc.mfc)
  • no keyboard and mouse drivers - how do i install them?
    ... need to indstall the drivers for it. ... I then noticed that the keyboard wasn;t reponding either (ie windows ... The PC has only usb connections, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: OT: Ping eeePC owners
    ... 'Use Linux' section? ... the details state "To use your 3 USB modem you?ll need a few ... space, 1 free USB port, a Windows 2000, XP, Vista or and Mac OSX ... there were times a keyboard would have been an advantage. ...
    (uk.comp.sys.mac)
  • Re: USB Keyboard not detected
    ... computer running for the USB mouse. ... > im using windows 2003 enterprise edition. ... > windows does not detect my keyboard. ...
    (microsoft.public.windowsxp.hardware)

Quantcast