Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Unsolved [DOSBOX] Mouse 2 ?

    Emulator Arcade/PC/Console
    [dosbox] mouse
    4
    23
    8420
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jomofcw
      jomofcw last edited by

      Hello @Dragu !
      Thanks for your answer :).
      Sadly, in mlapper, I can only bind mouse 1 event :/.
      I need to set mouse 2 event...
      Or I missunderstood something in the mapper.

      "Be CoOl, KeEp CoOl, HaVe FuN !"

      voljega 1 Reply Last reply Reply Quote 0
      • voljega
        voljega Banned @jomofcw last edited by

        @jomofcw I was going to respond the same thing, and the dosbox.cfg file for Settlers 2 in ExoDOS Collection doesn't show any custom conf....

        1 Reply Last reply Reply Quote 0
        • Dragu
          Dragu Banned last edited by Dragu

          @jomofcw
          @voljega
          I understand, but for mouse 2 (I dont know the game) do you have a keyboard alternative for the mouse 2 ? In such case, better if possible to define keyboard use and map the keyboard in the dosbox mapper. If it works here.

          1 Reply Last reply Reply Quote 0
          • jomofcw
            jomofcw last edited by

            Hello @voljega !
            Sadly, nop : no custom conf inf the ExoDOS CFG for Settlers 2 :'(.

            @Dragu I've no alternative keyboard/mouse. That's why I would like to use the joystick (here a PS3 BT controller) as mouse 2.

            "Be CoOl, KeEp CoOl, HaVe FuN !"

            1 Reply Last reply Reply Quote 0
            • Dragu
              Dragu Banned last edited by

              @jomofcw said in [DOSBOX] Mouse 2 ?:

              ExoDOS

              Silly question, you need both mouses at the same moment ?

              1 Reply Last reply Reply Quote 0
              • jomofcw
                jomofcw last edited by

                @Dragu yep ! It's a split screen multiplayer mode.
                See it there : https://www.youtube.com/watch?v=Vfpx0siF5TU

                "Be CoOl, KeEp CoOl, HaVe FuN !"

                1 Reply Last reply Reply Quote 0
                • Dragu
                  Dragu Banned last edited by

                  @jomofcw
                  I just try out my setup with crusader, where I need it just for menu and codefield in the game. I defined the second joystick to mouse on my bartop because I want all games functioning without keyboard+mouse connected to my bartop.
                  I have a slim bluetooth keyboard, 5mm, who find his place normally between the feets of the bartop. For configurations you need one. So, this keyboard has integrated mousepad. Just for the info.
                  When I switch keyboard on, I can use mousepad and joystick 2 together, independant. But I suppose your game specially made for 2 mouse.(and 2 pointers)
                  So, if you connect 2 mouse, this should work the same as with a PC. You tried already 2 USB mouses ?

                  1 Reply Last reply Reply Quote 0
                  • jomofcw
                    jomofcw last edited by

                    Hello !

                    I'm finally back with result of test : 2 USB mouses plugged doesn't solve the problem :/. Both work as main mouse, so it move the same pointer.
                    Any idea how to get the "name" of the port where both of my mouses are plugged, please ?

                    "Be CoOl, KeEp CoOl, HaVe FuN !"

                    1 Reply Last reply Reply Quote 0
                    • jomofcw
                      jomofcw last edited by

                      I've tested many thing in my dosbox.cfg, but it doesn't work 😕
                      What I've tryed :
                      serial1=directserial realport:com1
                      serial1=directserial realport:ttyS0
                      serial1=directserial realport:ttyS1
                      serial1=directserial realport:ttyS2
                      serial1=directserial realport:ttyS3
                      serial1=directserial realport:/dev/input/mouse1
                      serial1=directserial realport:mouse1

                      Nothing fix it...

                      "Be CoOl, KeEp CoOl, HaVe FuN !"

                      Substring 1 Reply Last reply Reply Quote 0
                      • Dragu
                        Dragu Banned last edited by Dragu

                        @jomofcw
                        Perhaps it will not be possible at all, seams that in Windows 7 its also not working.
                        http://ofp-faguss.com/blog/settlers-2nd-mouse/
                        Perhaps with hardware adapter USB to serial RS232 ? I would first try with cheap
                        adapter cable and serial mouse as second. If I understood what is written in the manual.

                        jomofcw 1 Reply Last reply Reply Quote 0
                        • jomofcw
                          jomofcw @Dragu last edited by

                          @dragu thanks for your answer again.
                          In a comment from your link :
                          "In Linux I would translate the USB Mouse output to the COM interface to simulate a serial mouse. That works well, despite of a little laggy 2nd mouse."

                          It would be the solution, but I really dunno how to do that, sadly :-(...
                          As it's kinda an hadware things, perhaps @Substring or @rockaddicted could help ?

                          "Be CoOl, KeEp CoOl, HaVe FuN !"

                          1 Reply Last reply Reply Quote 0
                          • jomofcw
                            jomofcw last edited by

                            Perhaps usefull ? http://www.tldp.org/HOWTO/Serial-HOWTO-10.html#ss10.4

                            "Be CoOl, KeEp CoOl, HaVe FuN !"

                            1 Reply Last reply Reply Quote 0
                            • Substring
                              Substring @jomofcw last edited by

                              @jomofcw can't you add a serial2=directserial realport:/dev/input/mouseX with the /dev/input/mouseX being the right input device ? I know nothing about dosbox configuration

                              Former dev - Please reply with @substring so that i am notified when you answer me
                              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                              jomofcw 1 Reply Last reply Reply Quote 0
                              • jomofcw
                                jomofcw @Substring last edited by

                                @substring I've tryed it with "serial1" and it doesn't work. I'll try with "serial2" instead, to see.

                                "Be CoOl, KeEp CoOl, HaVe FuN !"

                                Substring voljega 2 Replies Last reply Reply Quote 0
                                • Substring
                                  Substring @jomofcw last edited by

                                  @jomofcw You should check how mice are handled in dosbox : if it emulates a PS2 port or several DB9 serial ports.

                                  Former dev - Please reply with @substring so that i am notified when you answer me
                                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                  jomofcw 1 Reply Last reply Reply Quote 0
                                  • jomofcw
                                    jomofcw @Substring last edited by

                                    @substring if I understand it well, it does both. Default/main is PS2, but the "serial" cfg enable us to get some DB9 equivalent.

                                    "Be CoOl, KeEp CoOl, HaVe FuN !"

                                    1 Reply Last reply Reply Quote 0
                                    • voljega
                                      voljega Banned @jomofcw last edited by

                                      @jomofcw dosbox.conf says that about the serial parameters :

                                      [serial]
                                      serial1: set type of device connected to com port.
                                      Can be disabled, dummy, modem, nullmodem, directserial.
                                      Additional parameters must be in the same line in the form of
                                      parameter:value. Parameter for all types is irq (optional).
                                      for directserial: realport (required), rxdelay (optional).
                                      (realport:COM1 realport:ttyS0).
                                      for modem: listenport (optional).
                                      for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
                                      transparent, port, inhsocket (all optional).
                                      Example: serial1=modem listenport:5000
                                      Possible values: dummy, disabled, modem, nullmodem, directserial.
                                      serial2: see serial1
                                      Possible values: dummy, disabled, modem, nullmodem, directserial.
                                      serial3: see serial1
                                      Possible values: dummy, disabled, modem, nullmodem, directserial.
                                      serial4: see serial1
                                      Possible values: dummy, disabled, modem, nullmodem, directserial.

                                      jomofcw 1 Reply Last reply Reply Quote 0
                                      • jomofcw
                                        jomofcw @voljega last edited by

                                        @voljega yup, seen.

                                        That's why I think that solution is about the "realport" option.
                                        ttySx is link to physical DB9 port linux. That's why I would like to test with ttyUSBx, but it probably need to be defined.
                                        I will make few more test case tonight.

                                        "Be CoOl, KeEp CoOl, HaVe FuN !"

                                        1 Reply Last reply Reply Quote 0
                                        • Dragu
                                          Dragu Banned last edited by

                                          As it reads in the description, mouse 1 is the input from driver, so for mouse 1 you have no special needs.
                                          For mouse 2, they dont talk about driver, they just analyze the input from another RS232 different from COM1, so COM2-x.
                                          With serial mouse, true RS232 works with voltages -12 +12, no TLL level. So if you connect a serial mouse to an serial 5V UART, the problem will come from the mouse. There are some boards that use MAX232, a chip that makes from 5V TLL 10V RS232.

                                          jomofcw 1 Reply Last reply Reply Quote 0
                                          • jomofcw
                                            jomofcw @Dragu last edited by

                                            @dragu I'm not sure to understand all of that ... (on devrait peut être en discuter en Français sur IRC à l'occasion 😉 ).
                                            Perhaps there is confusion : Recalbox is installed on a Rasp Pi 3b, so the only ports I have, out of the box, are USBs.

                                            "Be CoOl, KeEp CoOl, HaVe FuN !"

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Want to support us ?

                                            89
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com