473,399 Members | 2,858 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,399 software developers and data experts.

no recoil in c++

im wondering how i would write a program in c++ that when someone hits
the left mouse button it will pull it down...creating less recoil in a
video game

thanks for all responses :)
Jul 22 '05 #1
9 3021

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone hits
the left mouse button it will pull it down...
It will pull *what* down?
...creating less recoil in a video game


What on earth are you talking about?
Jul 22 '05 #2

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone hits
the left mouse button it will pull it down...creating less recoil in a
video game

thanks for all responses :)


Are you talking about having your program control the mouse button? That's
not possible. The mouse buttons have no electronics to control them by any
means whatsoever. Your finger does all the controlling. The computer
simply reads the state of the mouse buttons. There is no feedback path from
the computer to the mouse buttons. (That's be pretty neat, though...imagine
your mouse suddenly running around the desktop by itself, pushing its own
buttons! That'd sure scare the cat! :-))

-Howard
Jul 22 '05 #3

"Howard" <al*****@hotmail.com> a écrit dans le message de news:
bt********@dispatch.concentric.net...

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone hits
the left mouse button it will pull it down...creating less recoil in a
video game

thanks for all responses :)
Are you talking about having your program control the mouse button?

That's not possible. The mouse buttons have no electronics to control them by any means whatsoever. Your finger does all the controlling. The computer
simply reads the state of the mouse buttons. There is no feedback path from the computer to the mouse buttons. (That's be pretty neat, though...imagine your mouse suddenly running around the desktop by itself, pushing its own
buttons! That'd sure scare the cat! :-))

-Howard


i remember Logitech created some mouses with force feedback... totally
useless it seems, it did not have any success... For example, the mouse was
harder to drag when over an icon, to "materialize" the object...
sorry, no more details :/
Jul 22 '05 #4

"Howard" <al*****@hotmail.com> wrote in message
news:bt********@dispatch.concentric.net...

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone hits
the left mouse button it will pull it down...creating less recoil in a
video game

thanks for all responses :)
Are you talking about having your program control the mouse button?

That's not possible. The mouse buttons have no electronics to control them by any means whatsoever. Your finger does all the controlling. The computer
simply reads the state of the mouse buttons. There is no feedback path from the computer to the mouse buttons. (That's be pretty neat, though...imagine your mouse suddenly running around the desktop by itself, pushing its own
buttons! That'd sure scare the cat! :-))


Well, if that *is* what he's talking about, I'm pretty sure there are force
feedback mice, just like there are force feedback joysticks. Even then his
question is still extremely murky, but in any case I'm sure the answer is
"it doesn't have anything to do with C++ per se."
Jul 22 '05 #5
Howard wrote:

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone
hits the left mouse button it will pull it down...creating less
recoil in a video game

thanks for all responses :)


Are you talking about having your program control the mouse button?
That's not possible. The mouse buttons have no electronics to control
them by any means whatsoever. Your finger does all the controlling.
The computer simply reads the state of the mouse buttons. There is no
feedback path from the computer to the mouse buttons. (That's be
pretty neat, though...imagine your mouse suddenly running around the
desktop by itself, pushing its own buttons! That'd sure scare the
cat! :-))


Well, there are force feedback mice, though those probably don't have
feedback on their buttons ;-)

Jul 22 '05 #6

"jeffc" <no****@nowhere.com> wrote in message
news:3f********@news1.prserv.net...

"Howard" <al*****@hotmail.com> wrote in message
news:bt********@dispatch.concentric.net...

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone hits
the left mouse button it will pull it down...creating less recoil in a
video game

thanks for all responses :)
Are you talking about having your program control the mouse button?

That's
not possible. The mouse buttons have no electronics to control them by

any
means whatsoever. Your finger does all the controlling. The computer
simply reads the state of the mouse buttons. There is no feedback path

from
the computer to the mouse buttons. (That's be pretty neat,

though...imagine
your mouse suddenly running around the desktop by itself, pushing its own buttons! That'd sure scare the cat! :-))


Well, if that *is* what he's talking about, I'm pretty sure there are

force feedback mice, just like there are force feedback joysticks. Even then his question is still extremely murky, but in any case I'm sure the answer is
"it doesn't have anything to do with C++ per se."


Force feedback mice, from what I've read, affect the whole mouse body, not
the up/down state of the buttons. They won't push (pull? :-)) the buttons
for you. That's a pretty useless feature. And as you say, nothing to do
with C++. And if you *DID* have a mouse that let you control the buttons
via software, then the documentation for that mouse would be where to find
out how to do it, not this newsgroup.

-Howard


Jul 22 '05 #7
Rolf Magnus <ra******@t-online.de> wrote in message news:<bt*************@news.t-online.com>...
Howard wrote:

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
im wondering how i would write a program in c++ that when someone
hits the left mouse button it will pull it down...creating less
recoil in a video game

thanks for all responses :)


Are you talking about having your program control the mouse button?
That's not possible. The mouse buttons have no electronics to control
them by any means whatsoever. Your finger does all the controlling.
The computer simply reads the state of the mouse buttons. There is no
feedback path from the computer to the mouse buttons. (That's be
pretty neat, though...imagine your mouse suddenly running around the
desktop by itself, pushing its own buttons! That'd sure scare the
cat! :-))


Well, there are force feedback mice, though those probably don't have
feedback on their buttons ;-)


sorry guys that was really vag i want the program to pull the mouse
arrow down when the person clicks the left mouse button
Jul 22 '05 #8
> > > "billy blanks" <gl******@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
> im wondering how i would write a program in c++ that when someone
> hits the left mouse button it will pull it down...creating less
> recoil in a video game
>
> thanks for all responses :)

Are you talking about having your program control the mouse button?
That's not possible. The mouse buttons have no electronics to control them by any means whatsoever. Your finger does all the controlling.
The computer simply reads the state of the mouse buttons. There is no feedback path from the computer to the mouse buttons. (That's be
pretty neat, though...imagine your mouse suddenly running around the
desktop by itself, pushing its own buttons! That'd sure scare the
cat! :-))


Well, there are force feedback mice, though those probably don't have
feedback on their buttons ;-)


sorry guys that was really vag i want the program to pull the mouse
arrow down when the person clicks the left mouse button


Standard C++ has no support for mouse, mouse pointers and other GUI stuff
in standard C++. To accomplish what you want, you will need to use platform
specific functions. Since platform specific functions are beyond the scope
of this newsgroup, you will have look for a newsgroup dedicated to your
platform. Suggestions for more appropriate newsgroups can be found here:
http://www.slack.net/~shiva/welcome.txt
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
Jul 22 '05 #9

"billy blanks" <gl******@hotmail.com> wrote in message
news:b1*************************@posting.google.co m...

sorry guys that was really vag i want the program to pull the mouse
arrow down when the person clicks the left mouse button


That's going to be system specific - for example, if on Windows, you'll have
to look it up in Visual C++ documentation, or whatever you're using. It's
not part of C++ per se.
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
by: Davor | last post by:
Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Also, is anyone...
1
by: TomL | last post by:
Hi, I am looking for menus in Javascript. I am no good at it myself and I hope to find some similar to this one below www.webwerkstaden.se Do anyone know where I can find a similar one. ...
55
by: Haines Brown | last post by:
I've been setting font-size 1em; as the default in my style sheets. Until now, that seemed to be ok. But now I'm beginning to wonder. My aim is to have an easily readable, but not overly large...
25
by: Sune A | last post by:
Hi All! I'm having problems with www.suneworld.com The thing is that I'd like to lock the width of the page, so that it won't adjust dynamically. Any CSS people out there that can help me? ...
6
by: glakk | last post by:
I got on the tableless layout bandwagon early on, and thought it was a really cool way to lay out a page. I don't know why I thought it was so cool, except I guess I fell for the "oh, cool" talk. ...
8
by: | last post by:
I have a Custom WebControl which adds several children at OnInit. In OnInit I set the ChildControl to ParentID + "_" + Control's ID so it would be something like MyContainer_VendorID Now the...
0
by: AJAY SHARMA | last post by:
rpasken@eas.slu.edu , You have made comments that Momentum is not Conserved in my PAPER. It is not CORRECT. It is explained in 100 Years of E=mc2 rpasken@eas.slu.edu Robert Pasken ...
3
by: naurus | last post by:
i'd like to know what set timeout does after its finished. I have a script that starts a timeout right before sending an SJaX request that timesout after 1000 milliseconds and abort()s the SJaX...
4
by: cryoburned | last post by:
I need to convert paragraphs of random 16 bit lines. they will be formated with a single blank line in between (between each paragraph. Each line will continue to the next line.) How can I get all...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.