473,327 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Keyboard and mouse librarys

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
8 3396
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

"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

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
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

"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
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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael J Whitmore | last post by:
Greetings, I have a very simple question. How do you simulate a user input to turn off a screen saver in Windows (either a mouse movement, mouse click, or keyboard input)? I promise I searched...
3
by: Megha Vishwanath | last post by:
problem defination : I have written one application which does lot of cpu intensive operation , which would take up to 50% cpu continuosly , as result of this whole opertaing system becomes...
0
by: George Hartas | last post by:
I am using Visual C# .NET 2003 to make a ComboBox accept both mouse and keyboard selection. For mouse selection code, I double-clicked ComboBox to get the default "comboBox1_SelectedIndexChanged"...
3
by: Per Larsson | last post by:
Hi! I've developed an application, and I want to use a semi opac form to show the help. The idea is to show the transparent help form on top (TopMost = True)and still be able to work with the...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
0
by: Gamey | last post by:
I have an application that NEEDS (don't ask) to handle additional mouse and keyboard processing during DoDragDrop. Normally, DoDragDrop kindly squashes all keyboard and mouse events. Alternate,...
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
2
by: Doug | last post by:
Hi I am trying to find a way to make the mouse cursor move to the keyboard cursor position in an application. For example, I use an application called Enterprise Guide, and I control this...
13
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.