By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,903 Members | 2,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,903 IT Pros & Developers. It's quick & easy.

Keyboard and mouse librarys

P: n/a
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?
Jul 22 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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.
Jul 22 '05 #2

P: n/a

"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?
Jul 22 '05 #3

P: n/a

Keyboards and mouses(mice, whatever) are in the same
category as GPS systems, infa-red radar - there's no
definite way to work with them, they're worked with
differently for every platform. For MSWindows, there's the
Win32API.
-JKop

Jul 22 '05 #4

P: n/a
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

Jul 22 '05 #5

P: n/a

"JKop" <NU**@NULL.NULL> wrote in message
news:y5*****************@news.indigo.ie...

Keyboards and mouses(mice, whatever) are in the same
category as GPS systems, infa-red radar - there's no
definite way to work with them, they're worked with
differently for every platform. For MSWindows, there's the
Win32API.

....which talks to the specific mouse or keyboard driver, which communicates
with the computer's ports, which funnels the communications between the CPU
and the mouse or keyboard. :-)

-JKop

Jul 22 '05 #6

P: n/a
Howard posted:

"JKop" <NU**@NULL.NULL> wrote in message
news:y5*****************@news.indigo.ie...

Keyboards and mouses(mice, whatever) are in the same
category as GPS systems, infa-red radar - there's no
definite way to work with them, they're worked with
differently for every platform. For MSWindows, there's the Win32API.

...which talks to the specific mouse or keyboard driver,

which communicates with the computer's ports, which funnels the
communications between the CPU and the mouse or keyboard. :-)

-JKop


I learned all about Windows Device Drivers so I could
directly "communicate" with the Power device driver to get
the computer to turn off instantly!

....unfortunately I was never successful.
-JKop
Jul 22 '05 #7

P: n/a
Nolan Martin wrote:
Christopher Benson-Manica wrote:
Nolan Martin 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?


No.
The C++ standard does not presume
that there even is a keyboard or mouse. Keyboard and mouse events
are handled differently on different platforms --
machine architecture + operating system + C++ compiler.
If you can tell us your target platform(s),
we may be able to redirect you to a more appropriate forum.

Please ignore Christopher Benson-Manica --
he's one of our resident trolls.
If you continue your subscription to the comp.lang.c++ newsgroup,
you will learn to recognize and ignore them.
Jul 22 '05 #8

P: n/a

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:cd**********@nntp1.jpl.nasa.gov...
Nolan Martin wrote:
Christopher Benson-Manica wrote:
Nolan Martin 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 Iataru(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?


No.
The C++ standard does not presume
that there even is a keyboard or mouse. Keyboard and mouse events
are handled differently on different platforms --
machine architecture + operating system + C++ compiler.
If you can tell us your target platform(s),
we may be able to redirect you to a more appropriate forum.

Please ignore Christopher Benson-Manica --
he's one of our resident trolls.
If you continue your subscription to the comp.lang.c++ newsgroup,
you will learn to recognize and ignore them.


Heh, thank you for your more...understanding reply to my message.
I was actually expecting the sort of answers I see here and was just
eliminating the possibility of a standard library for the keybaord and
mouse.

Although there is more or less a standard for keyboards and mice, that is
why you see some BIOS's supporting mice, and all BIOS's support keyboards.
Its not like the BIOS manufacturor sat down and wrote a different driver for
every keyboard that is or ever will be.

Thanks for your replys anyway.
Jul 22 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.