no recoil in c++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • billy blanks

    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 :)
  • jeffc

    #2
    Re: no recoil in c++


    "billy blanks" <glue_gtp@hotma il.com> wrote in message
    news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=blue]
    > im wondering how i would write a program in c++ that when someone hits
    > the left mouse button it will pull it down...[/color]

    It will pull *what* down?
    [color=blue]
    >...creating less recoil in a video game[/color]

    What on earth are you talking about?


    Comment

    • Howard

      #3
      Re: no recoil in c++


      "billy blanks" <glue_gtp@hotma il.com> wrote in message
      news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=blue]
      > 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 :)[/color]

      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...imagin e
      your mouse suddenly running around the desktop by itself, pushing its own
      buttons! That'd sure scare the cat! :-))

      -Howard


      Comment

      • Le Géant Vert

        #4
        Re: no recoil in c++


        "Howard" <alicebt@hotmai l.com> a écrit dans le message de news:
        bti0hg$6ir@disp atch.concentric .net...[color=blue]
        >
        > "billy blanks" <glue_gtp@hotma il.com> wrote in message
        > news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=green]
        > > 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 :)[/color]
        >
        > Are you talking about having your program control the mouse button?[/color]
        That's[color=blue]
        > not possible. The mouse buttons have no electronics to control them by[/color]
        any[color=blue]
        > means whatsoever. Your finger does all the controlling. The computer
        > simply reads the state of the mouse buttons. There is no feedback path[/color]
        from[color=blue]
        > the computer to the mouse buttons. (That's be pretty neat,[/color]
        though...imagin e[color=blue]
        > your mouse suddenly running around the desktop by itself, pushing its own
        > buttons! That'd sure scare the cat! :-))
        >
        > -Howard
        >
        >[/color]

        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 "materializ e" the object...
        sorry, no more details :/


        Comment

        • jeffc

          #5
          Re: no recoil in c++


          "Howard" <alicebt@hotmai l.com> wrote in message
          news:bti0hg$6ir @dispatch.conce ntric.net...[color=blue]
          >
          > "billy blanks" <glue_gtp@hotma il.com> wrote in message
          > news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=green]
          > > 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 :)[/color]
          >
          > Are you talking about having your program control the mouse button?[/color]
          That's[color=blue]
          > not possible. The mouse buttons have no electronics to control them by[/color]
          any[color=blue]
          > means whatsoever. Your finger does all the controlling. The computer
          > simply reads the state of the mouse buttons. There is no feedback path[/color]
          from[color=blue]
          > the computer to the mouse buttons. (That's be pretty neat,[/color]
          though...imagin e[color=blue]
          > your mouse suddenly running around the desktop by itself, pushing its own
          > buttons! That'd sure scare the cat! :-))[/color]

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


          Comment

          • Rolf Magnus

            #6
            Re: no recoil in c++

            Howard wrote:
            [color=blue]
            >
            > "billy blanks" <glue_gtp@hotma il.com> wrote in message
            > news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=green]
            >> 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 :)[/color]
            >
            > 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...imagin e your mouse suddenly running around the
            > desktop by itself, pushing its own buttons! That'd sure scare the
            > cat! :-))[/color]

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

            Comment

            • Howard

              #7
              [OT] Re: no recoil in c++


              "jeffc" <nobody@nowhere .com> wrote in message
              news:3ffc8f22_3 @news1.prserv.n et...[color=blue]
              >
              > "Howard" <alicebt@hotmai l.com> wrote in message
              > news:bti0hg$6ir @dispatch.conce ntric.net...[color=green]
              > >
              > > "billy blanks" <glue_gtp@hotma il.com> wrote in message
              > > news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=darkred]
              > > > 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 :)[/color]
              > >
              > > Are you talking about having your program control the mouse button?[/color]
              > That's[color=green]
              > > not possible. The mouse buttons have no electronics to control them by[/color]
              > any[color=green]
              > > means whatsoever. Your finger does all the controlling. The computer
              > > simply reads the state of the mouse buttons. There is no feedback path[/color]
              > from[color=green]
              > > the computer to the mouse buttons. (That's be pretty neat,[/color]
              > though...imagin e[color=green]
              > > your mouse suddenly running around the desktop by itself, pushing its[/color][/color]
              own[color=blue][color=green]
              > > buttons! That'd sure scare the cat! :-))[/color]
              >
              > Well, if that *is* what he's talking about, I'm pretty sure there are[/color]
              force[color=blue]
              > feedback mice, just like there are force feedback joysticks. Even then[/color]
              his[color=blue]
              > 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."
              >
              >[/color]

              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




              Comment

              • billy blanks

                #8
                Re: no recoil in c++

                Rolf Magnus <ramagnus@t-online.de> wrote in message news:<bti3cu$d1 c$05$1@news.t-online.com>...[color=blue]
                > Howard wrote:
                >[color=green]
                > >
                > > "billy blanks" <glue_gtp@hotma il.com> wrote in message
                > > news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...[color=darkred]
                > >> 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 :)[/color]
                > >
                > > 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...imagin e your mouse suddenly running around the
                > > desktop by itself, pushing its own buttons! That'd sure scare the
                > > cat! :-))[/color]
                >
                > Well, there are force feedback mice, though those probably don't have
                > feedback on their buttons ;-)[/color]

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

                Comment

                • Peter van Merkerk

                  #9
                  Re: no recoil in c++

                  > > > "billy blanks" <glue_gtp@hotma il.com> wrote in message[color=blue][color=green][color=darkred]
                  > > > news:b168c270.0 401071356.59c0e 09f@posting.goo gle.com...
                  > > >> 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[/color][/color][/color]
                  control[color=blue][color=green][color=darkred]
                  > > > them by any means whatsoever. Your finger does all the controlling.
                  > > > The computer simply reads the state of the mouse buttons. There is[/color][/color][/color]
                  no[color=blue][color=green][color=darkred]
                  > > > feedback path from the computer to the mouse buttons. (That's be
                  > > > pretty neat, though...imagin e your mouse suddenly running around the
                  > > > desktop by itself, pushing its own buttons! That'd sure scare the
                  > > > cat! :-))[/color]
                  > >
                  > > Well, there are force feedback mice, though those probably don't have
                  > > feedback on their buttons ;-)[/color]
                  >
                  > sorry guys that was really vag i want the program to pull the mouse
                  > arrow down when the person clicks the left mouse button[/color]

                  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:



                  --
                  Peter van Merkerk
                  peter.van.merke rk(at)dse.nl


                  Comment

                  • jeffc

                    #10
                    Re: no recoil in c++


                    "billy blanks" <glue_gtp@hotma il.com> wrote in message
                    news:b168c270.0 401080510.e1397 c2@posting.goog le.com...[color=blue]
                    >
                    > sorry guys that was really vag i want the program to pull the mouse
                    > arrow down when the person clicks the left mouse button[/color]

                    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.


                    Comment

                    Working...