Dosbox mouse support
-
I haven't had much free time to test DOSbox (or anything on RetroPie) lately. But I do intend to re-test the mouse support soon, as I've recently purchased a new Logitech keyboard with integrated touchpad, and I want to see if it works or exhibits any problems.
buzz had a PR to add lr-dosbox to experimental recently, but he accidentally closed it without merging; last night I asked him to redo it when he has time, so you should be able to try that soon. If you already know the basics on how to use git or general patching, you can try it yourself: https://github.com/RetroPie/RetroPie-Setup/pull/2089
-
@psyke83 standard mice work without any issues in dosbox. I use a real mouse or touchpad mouse all the time. Never had to do any kind of setup. As for lr-dosbox i couldnt tell you as standalone dosbox works great for me.
-
i just use a keyboard mapping that i made to have my controller act like a mouse, takes a little getting use to, but it works for me fine
-
@MindController A scriptmodule for lr-dosbox is now available in the experimental section of the RetroPie setup script with this commit.
@edmaul69 The OP's issue was with using a controller as a mouse in DOSBox rather than a physical mouse.
@exarkuniv I am curious. Could you provide an example?
-
sure, here is the how to guide that i followed with a lot of help from @mediamogul
if [ "$3" = "/home/pi/RetroPie/roms/pc/Shadow Warrior.sh" ] then sudo killall > /dev/null 2>&1 xboxdrv sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \ --evdev /dev/input/event4 \ --silent \ --detach-kernel-driver \ --force-feedback \ --mimic-xpad \ --dpad-as-button \ --deadzone 4000 \ --trigger-as-button \ --evdev-no-grab \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ --evdev-keymap KEY_#304=a,KEY_#305=b,KEY_#307=x,KEY_#308=y,KEY_#312=lt,KEY_#313=rt,KEY_#310=lb,KEY_#311=rb,KEY_#317=tl,KEY_#318=tr,KEY_#314=back,KEY_#315=start \ --axismap -Y1=Y1,-Y2=Y2 \ --ui-axismap x2=REL_X:09,y2=REL_Y:09 \ --ui-axismap x1=REL_X:07,y1=REL_Y:07 \ --ui-buttonmap rt=BTN_LEFT,lt=BTN_RIGHT,start=KEY_ENTER,back=KEY_ESC,tl=KEY_SPACE,lb=KEY_E,a=KEY_SEMICOLON,b=KEY_APOSTROPHE,x=KEY_LEFTBRACE,y=KEY_RIGHTBRACE,tr=KEY_LEFTCTRL \ --ui-buttonmap guide=void \ --ui-axismap x1=KEY_A:KEY_D,Y1=KEY_W:KEY_S \ & fi
it does look confusing, but once you know what to do, it works really well. im useing it for a lot of stuff, even though a few packages have been updated to use hardcoded controllers. i still like my mapping better
-
@exarkuniv Thanks. I see you are using xboxdrv. I thought you meant you had mapped your controller to act as a mouse in DOSBox.
-
that what it does. i move my right stick and the mouse moves. that is how i play warcraft 2
-
I have built and installed lr-dosbox from source and can confirm that the mouse is indeed mapped to my PS3 controller by default. Mouse movement is mapped to the right analog stick. The left mouse button is mapped to the right trigger (R2) and the right button to the left trigger (L2).
It appears that the key mapper doesn't work so games such as Abuse will require a keyboard.
-
well that sucks, guess i will just stick to the stock version of DOSbox,
xboxdrv mapping works great with it -
@ExarKunIv I know this was some time ago, but I am trying to make my joystick act like a mouse in DOSbox. Do you remember where that file you made is stored?
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.