Nolan Martin wrote:
"Christopher Benson-Manica" <at***@nospam.cyberspace.org> wrote in message
news:cd**********@chessie.cirr.com...
Nolan Martin <mo**********@hotmail.com> spoke thus:
Is it just me or are there no good librarys out there to access the
keyboard
or mouse?
I have been looking around for a while now and can only find ones that
are
bundled with a bunch of other stuff that I dont need (SDL, GLUT). I just
need a simple platform independant way to access the keyboard and mouse.
Anyone know of any good ones?
Your post is off-topic for comp.lang.c++. Please visit
http://www.slack.net/~shiva/welcome.txt
http://www.parashift.com/c++-faq-lite/
for posting guidelines and frequently asked questions. Thank you.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Great, let me rephrase the question...
Is there a C++ standard library that provides an interface to access the
keyboard and mouse?
Let me clarify what others have said.
There is no _standard_ library for interfacing to a keyboard and
mouse because these topics are not part of the _standard_ language.
There are _platform_specific_ libraries out there for accessing mice
and keyboards. Some manufacturers may even have sample code for
accessing their keyboards and mice.
By the way, there doesn't seem to be a standard keyboard nor a
standard mouse. Also, the _standard_ C++ languages does not require
a platform to have a mouse. Vending machines and microwave ovens
don't {intentionally} have mice, but they can execute C++ programs.
I have yet to see a "standard" mouse or keyboard. Would be nice
though, so I don't have to keep adjusting my typing for every
workstation that I use. If you don't believe there isn't a standard,
just go look at an APL keyboard and a Windows one. Heck, compare
keyboards between MS-Windows platforms. I have two computers from
the same vendor that have different mice and keyboards!
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book