Setup mouse look using joystick hat

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zuiquan1
    Battleship Mod
    • Jan 2006
    • 1318

    #31
    Re: Setup mouse look using joystick hat

    ok thanks, Ive made some improvements, I can use the hat to move the look around, but I still have to press ctrl to do it, still fooling with

    Comment

    • Talus
      Member
      • Oct 2006
      • 6854

      #32
      Re: Setup mouse look using joystick hat

      Not if you load 2 instances of JoyToKey and load each of those configs...

      Either that or install joytokey to c:\program files\joytokey and run the .bat file I provided.

      EDIT: sorry...I attached the wrong config files.

      Here is the right one. Sorry.

      Comment

      • zuiquan1
        Battleship Mod
        • Jan 2006
        • 1318

        #33
        Re: Setup mouse look using joystick hat

        hmmm, I tried doing what I though you said and know the hat switch doesnt do anything, I probably did something wrong, I dont know

        edit:whenever I open up the files you gave me(the joy2key) all the setting are disabled, thats never happend, before they were all set to different keys

        Comment

        • Talus
          Member
          • Oct 2006
          • 6854

          #34
          Re: Setup mouse look using joystick hat

          Well, it those config files CERTAINLY shouldn't look like settings are disabled.

          Remember, those configs are set up for MY system and my joystick. If you have more than 1 joystick plugged in, your results may vary.

          Let me have a quick look at those config files again and make sure all is well.

          EDIT: I just realized that I left out the .ini file. I was trying to use TotalBF2.com's built-in attachment system and since the file size is limited to 92Kb, I had to cut out the core files..guess that one got left out. That MAY be why you saw what you did. It should be fixed now.

          Comment

          • zuiquan1
            Battleship Mod
            • Jan 2006
            • 1318

            #35
            Re: Setup mouse look using joystick hat

            cool I FINALLY got it working, but only in helicopters, not in jets

            Comment

            • Talus
              Member
              • Oct 2006
              • 6854

              #36
              Re: Setup mouse look using joystick hat

              That is odd...it works for me in both.

              You MAY want to use the 'Reset to defaults' button if you continue to have problems, otherwise try and figure out what it is that you have changed in the 'Airplanes' section that may be different from the default.

              Sorry about my repeated mis-attachments

              Comment

              • zuiquan1
                Battleship Mod
                • Jan 2006
                • 1318

                #37
                Re: Setup mouse look using joystick hat

                so I set my controls back to default and now its working, BUT now I have to fly with keyboard, when I try and change the controls back to my joystick nothing happens, I cant fly with the keyboard.....

                Comment

                • Talus
                  Member
                  • Oct 2006
                  • 6854

                  #38
                  Re: Setup mouse look using joystick hat

                  I'm boggled...

                  When you go into the controls config screen, and then access the airplane section, and then double click an action box in the second (alternate) column, and then move the joystick or click a joystick button..what happens?

                  Are you unable to BIND?
                  Or are you unable to USE the joystick even though the commands are bound?

                  Comment

                  • zuiquan1
                    Battleship Mod
                    • Jan 2006
                    • 1318

                    #39
                    Re: Setup mouse look using joystick hat

                    well my joystick doesnt work at all anymore, except for the hat, when I try to change the contrls nothing happens

                    Comment

                    • djkruvand

                      #40
                      Re: Setup mouse look using joystick hat

                      How do you change the Control.con document, and the only place i can find it is in the internet browser.

                      Originally posted by Harmor
                      Why map it to the keyboard and have to change your joystick? Just do this:

                      Code:
                      Find:
                      
                      ControlMap.addKeyToTriggerMapping c_PIMouseLook IDFKeyboard IDKey_LeftCtrl 0 0
                      
                      and replace with:
                      
                      ControlMap.addKeyToTriggerMapping c_PIMouseLook IDFKeyboard IDKey_LeftCtrl 0 0
                      ControlMap.addButtonsToAxisMapping c_PIMouseLookX IDFGameController_0 IDButton_13 IDButton_15 0
                      ControlMap.addButtonsToAxisMapping c_PIMouseLookY IDFGameController_0 IDButton_12 IDButton_14 0
                      Notice here I have mapped 2 joystick buttons to an axis. The two buttons are the up/down and left/right of the HAT on my joystick.


                      IDFGameController_0 is my system's 1st joystick controller.
                      IDButton_12 is UP on my joystick's HAT (maybe different for your controller)
                      IDButton_14 is DOWN on my joystick's HAT (maybe different for you controller)...etc...


                      With the above you don't need to map Y O U I to your joystick's hat using special software.
                      How do you change the Control.con document, I can olny open it with a internet browser, which takes me to the whole list, but i can't change it

                      Comment

                      • Harmor

                        #41
                        Re: Setup mouse look using joystick hat

                        Originally posted by gamekinbg
                        How do you change the Control.con document, and the only place i can find it is in the internet browser.



                        How do you change the Control.con document, I can olny open it with a internet browser, which takes me to the whole list, but i can't change it
                        Try using Notepad.exe or Wordpad.exe to open the Control.con file. If you are still having problems then you may want to use the JoyToKey or Autohotkey methods.

                        Comment

                        • djkruvand

                          #42
                          Re: Setup mouse look using joystick hat

                          Originally posted by Harmor
                          Try using Notepad.exe or Wordpad.exe to open the Control.con file. If you are still having problems then you may want to use the JoyToKey or Autohotkey methods.
                          Thanks

                          I know i'm taking up your time, sorry i'm asking so many questions.
                          So I used notepad and I edited text, am i supposed to delete the orginal mouseControlMap.addKeyToTriggerMapping c_PIMouseLook IDFKeyboard IDKey_LeftCtrl 0 0 or keep it. And after doing that what are the precise instructions for mapping to joystick, because I'm totally confused with mapping and the joystick it's self. I can't believe Dice didn't allow joystick integration. Maybe in next patch if possible, thanks so much.

                          Comment

                          • Harmor

                            #43
                            Re: Setup mouse look using joystick hat

                            Delete the first line...add the other lines.


                            And yes, its dumb that EA/DICE did not implement using the HAT to Mouselook.

                            Comment

                            • A.E.

                              #44
                              Re: Setup mouse look using joystick hat

                              LOL Talus, you messed up some poor kid's joystick. :laugh:

                              Comment

                              • Talus
                                Member
                                • Oct 2006
                                • 6854

                                #45
                                Re: Setup mouse look using joystick hat

                                eep!

                                Comment

                                Working...