Re: Capturing USB data?
- From: "Peter Olcott" <NoSpam@xxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 13:41:55 -0500
"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
.
- Follow-Ups:
- Re: Capturing USB data?
- From: Joseph M . Newcomer
- Re: Capturing USB data?
- References:
- Capturing USB data?
- From: Peter Olcott
- Re: Capturing USB data?
- From: David Webber
- Capturing USB data?
- Prev by Date: Re: Capturing USB data?
- Next by Date: Re: How to Define a global const class variable in MFC?
- Previous by thread: Re: Capturing USB data?
- Next by thread: Re: Capturing USB data?
- Index(es):
Relevant Pages
|