473,768 Members | 8,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3422
Nolan Martin <mo**********@h otmail.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)cybers pace.org | don't, I need to know. Flames welcome.
Jul 22 '05 #2

"Christophe r Benson-Manica" <at***@nospam.c yberspace.org> wrote in message
news:cd******** **@chessie.cirr .com...
Nolan Martin <mo**********@h otmail.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)cybers pace.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:
"Christophe r Benson-Manica" <at***@nospam.c yberspace.org> wrote in message
news:cd******** **@chessie.cirr .com...
Nolan Martin <mo**********@h otmail.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)cybe rspace.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_speci fic_ 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.l earn.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 "communicat e" with the Power device driver to get
the computer to turn off instantly!

....unfortunate ly 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)cybe rspace.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.na sa.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)cybe rspace.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...understa nding 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
12239
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 the newsgroup before asking :) I have written the following program that loads all my Webshots files into the Webshots photo manager, or so I thought. When you load the first it starts the screen saver. All other subsequent ones are not
3
2909
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 sluggish , meaning mouse and keyborad becomes unresponsive . I mainly consider this behavior is because of inability of windows to to procrss the keyboard and mouse MESSAGES. From my appliacation i can process MessageQueue of my thread and hence its...
0
5793
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" event. This code (see below) by itself works as expected with a mouse. But when using keyboard arrows to navigate the ComboBox drop- down, the SelectedIndexChanged event is triggered which is what I don't want using the keyboard. Instead, I want...
3
1996
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 application underneath. By setting CausesValidation = False, it ignores keyboard action so thats OK, but it still hooks the mouse clicks. Does anybody know how to disasble the mouse hook in the form? (Or other work around?) Have messed around with...
16
10937
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 one post where "watch" seems to have difficulty tracking usb keyboards and mice. So, I'm out of ideas here. My goal are: 1. Check keyboard activity. I'm not interested in logging which keys are pressed or record them.
0
1614
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, more specific events, are used in their stead such as DragEnter, DragLeave, DragHover, GiveFeedback, and QueryContinueDrag. None of these give me access to the general state of the keyboard or to mouse events ( in my case I really need the mouse...
1
4631
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 (always this amount of time) the cursor freezes, the mouse inoperable and the keyboard locks up at the same time (num lock light goes out). I have to manually restart.
2
2410
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 application using Dragon naturally speaking as I have a disability that makes using the keyboard quite difficult. I often have to say the name of an object to make to be the active or highlighted object. However to do something such as drag and drop...
13
8757
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 is the behaviour I want make happen in IE. Does anyone know how to accomplish this? Thanks a lot Andy Birchall
0
9576
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9407
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10175
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10017
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9961
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9843
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7384
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.