Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Controller stuck in upper left corner in DOSBox



  • I'm using an Xbox 360 controller with RetroPie (using Pi3 B+). It works just fine with 99% of stuff. But with some games in DOSBox - for instance Doom II and Strike Commander - the "joystick" seems stuck to the upper left corner. In Strike Commander the cursor moves back there all the time, and in Doom II the character is running around in circles.

    As suggested, I have edited timed=false into the Joystick part of dosbox-SVN.conf, found in /opt/retropie/configs/pc but this has no effect.

    Any idea what's going on and how can this be fixed? In addition to the Xbox controller, I have a tiny Logitech wireless keyboard with a small mousepad hooked up to use it for keyboard duties.



  • @ibonihs For Doom II, you may want to consider a source port as it can be played at higher resolutions and, in the case of ZDoom, at higher framerates than the 35fps possible in DOSBox. More info at: https://retropie.org.uk/docs/Doom/

    From this thread, the drifting of the cursor in Strike Commander can be fixed by setting a fixed cycle count rather than the default cycles=max. For me, cycles=10000 seemed to work well but I only tested in the main menu so this value may need to be adjusted in-game.

    So that setting a fixed cycle count doesn't affect other games, I suggest using a .conf file to launch Strike Commander. This would be a text file in the pc folder called SC.conf, for instance, with the following contents:

    [cpu]
    cycles=10000
    
    [autoexec]
    # Lines in this section will be run at startup.
    # You can put your MOUNT lines here.
    

    In the [autoexec] section, add the lines to launch Strike Commander, MOUNT C /home/pi/RetroPie/roms/pc etc.

    If you find the cursor drifting to the top left again, delete JOYA.DAT in the Strike Commander data folder and recalibrate in-game.



  • @dudleydes said in Controller stuck in upper left corner in DOSBox:

    @ibonihs For Doom II, you may want to consider a source port as it can be played at higher resolutions and, in the case of ZDoom, at higher framerates than the 35fps possible in DOSBox. More info at: https://retropie.org.uk/docs/Doom/

    From this thread, the drifting of the cursor in Strike Commander can be fixed by setting a fixed cycle count rather than the default cycles=max. For me, cycles=10000 seemed to work well but I only tested in the main menu so this value may need to be adjusted in-game.

    So that setting a fixed cycle count doesn't affect other games, I suggest using a .conf file to launch Strike Commander. This would be a text file in the pc folder called SC.conf, for instance, with the following contents:

    [cpu]
    cycles=10000
    
    [autoexec]
    # Lines in this section will be run at startup.
    # You can put your MOUNT lines here.
    

    In the [autoexec] section, add the lines to launch Strike Commander, MOUNT C /home/pi/RetroPie/roms/pc etc.

    If you find the cursor drifting to the top left again, delete JOYA.DAT in the Strike Commander data folder and recalibrate in-game.

    I have this same issue with Joe Montana Football. The controller is so fast that you can't select the options... then it flys all over the screen, or the players don't react to your inputs.. etc.

    Will this setting help that? My gamepad works fine in other games with no problems at all.

    thanks,

    JR



  • @dudleydes said in Controller stuck in upper left corner in DOSBox:

    From this thread, the drifting of the cursor in Strike Commander can be fixed by setting a fixed cycle count rather than the default cycles=max. For me, cycles=10000 seemed to work well but I only tested in the main menu so this value may need to be adjusted in-game.

    Hmmm... I tried this (in Strike Commander) and for me this didn't work - the game just slowed down immensely (even just in the menus) and the problem remained. I didn't try deleting the joystick calibration file yet, though.



  • @ibonihs You could try increasing the cycles to 20000, 25000 etc.

    If this doesn't work then could you post the contents of your config file dosbox-SVN.conf at a site like pastebin.com?



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.