LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2005, 11:25 AM   #1
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Rep: Reputation: 15
Mouse Movement Problem in DOSbox


I'm running dosbox .63 in Suse 9.3 and when I move the mouse is a DOS game (I've tried two different ones) the pointer moves down and to the right regardless of which direction I move the mouse. None of the options pertaining to mouse settings in dosbox make any difference. I've searched the dosbox forums, and one other person reported the same problem with Fedora core 3 running dosbox .63, but no one had a solution so I thought I would try here. Anyone else having this problem? I've used this version of dosbox successfully with older versions of Suse, so I'm wondering if the problem is that 9.3 uses Xorg as opposed to Xfree86, but I don't know enough about X to know where to look or what to try. Any suggestions would be appreciated. I'm going through serious MOO2 withdrawal.
 
Old 09-11-2005, 12:37 PM   #2
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
try finding mouse.com somewhere and run it before you run your game.exe
 
Old 09-11-2005, 07:47 PM   #3
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
Good idea, but unfortunately for me it didn't work. If I run mouse.com after dosbox is started it says "Another Mouse driver already installed". If I run it as a command line option to dosbox, ie dosbox -c $path/mouse.com; then the mouse still behaves the same way as before. I'll have to see if there is a way to not use the default mouse driver when runing dosbox so that I can try loading different ones to see if any correct the problem. At least it gives me some things to try.
 
Old 09-11-2005, 08:08 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,271

Rep: Reputation: 63
Don't allow DOSBox to grab the mouse before the game starts. Leave the mouse cursor on your desktop, use the keyboard to start the DOSBox game, then click the mouse to allow the game to grab it.
 
Old 09-12-2005, 01:29 PM   #5
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
That is what I have been doing. The cursor behaves properly in the dosbox window until the game gets a hold of it, then it always moves down & to the left. It doesn't matter which game it is. I haven't tried other DOS programs that use a mouse, I don't normally use any; but I'll try and find something else to test it with.
 
Old 09-12-2005, 03:44 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,271

Rep: Reputation: 63
You're saying the mouse cursor is in the dosbox window (working) before the game starts. Try leaving it out of the dosbox window until after the game is started, then click on the game to let the game grab the mouse.

Another way is to use a seperate dosbox.conf file to autostart the game. Make a copy of the one you have and call it something like <game>.conf. at the end in the Autoexec section, put the commands to start the game.
 
Old 09-12-2005, 05:02 PM   #7
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
If I start dosbox, and don't have it grab the mouse, the cursor moves properly. However, this is just the cursor movement in X windows. Once any program in dosbox has control of the mouse it always moves down and to the right. It doesn't matter what the program is, or when I have it grab the mouse. The mouse driver in dosbox must not be communicating properly with X-windows. I suppose I could configure my account to not start X upon login and see if that makes a difference. This has all worked fine in the past, before I upgraded to SUSE 9.3, so I'm pretty sure it is not a problem with the programs in dosbox or related to grabbing and/or releasing the mouse.
 
Old 09-12-2005, 05:30 PM   #8
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,271

Rep: Reputation: 63
Ah, now I think I understand. The problem is a bit bigger than just a couple of DOSBox programs. It could be the mouse driver, as SlackerLX suggested. Try editing your dosbox.conf to not load a mouse driver, then you can try manually loading mouse.com or an alternate driver, maybe something from an old mouse driver disk.
You might also look at the driver you have loaded for X.
 
Old 09-12-2005, 06:48 PM   #9
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
Exactly. So far, I have been unable to figure out how to not load the default mouse driver. I can't find any options for dosbox.conf that will allow me to do this. I have mouse.com, as well as a couple other drivers, but they won't load if the default driver is functioning. Maybe I just haven't looked in the right place. As for the X windows mouse driver, every time I try and change the mouse type in YaST, then X refuses to load telling me I have a bad configuration. If I even so much as edit the number of buttons in my xorg.conf file it won't load. I'm guessing something is still not quite right with the ATI video driver (poor hardware choice on my part); but that is a whole other can of worms. I'm about to switch to an old generic three button PS/2 mouse, and if I can get X to play nicely I'll see if that helps. When X isn't running, dosbox won't load because it can't find a mouse. I don't know if that is typical or not, but it might be another piece of the puzzle.
 
Old 09-12-2005, 07:21 PM   #10
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
AHA! It is definitely the mouse driver in X. I unplugged the USB mouse, plugged in a PS/2 mouse, ran sax2 and accepted the default settings. The mouse now behaves properly in dosbox. How bizarre. Now I just have to figure out if I can get my wheel mouse (Logitech M310) to work with a different driver or setting that will play nicely with dosbox. I could stick with the old one, but the wheel is a real life saver for zooming in Pro/E. Thanks for all the suggestions.
 
Old 09-15-2005, 02:40 PM   #11
smannell
Member
 
Registered: Feb 2005
Location: Kansas City
Distribution: Kubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
If I connect the wheel mouse to the PS/2 port using a USB to PS/2 adapter, everything works fine. In dosbox the mouse behaves the same as my generic three button PS/2 mouse, and in Linux the wheel works. Here is the difference in the xorg.conf files.

When connected to the USB port:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Protocol" "explorerps/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "8"
Option "ZAxisMapping" "4 5"

When connected to the PS/2 port:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "8"
Option "Device" "/dev/input/mice"
Option "Name" "ImExPS/2 Logitech MX Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection

Both are using the same protocol, and I don't think the name or vendor settings would make any difference. I have no idea why the PS/2 port works correctly while the USB does not.
 
Old 09-15-2005, 04:41 PM   #12
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,271

Rep: Reputation: 63
After reading your recent posts and some thought, I wonder if it has anything to do with the fact that DOS never really had any USB support.
 
Old 06-05-2007, 08:48 AM   #13
Vermind
LQ Newbie
 
Registered: Jun 2007
Location: Helsinki
Distribution: Ubuntu
Posts: 5
Blog Entries: 9

Rep: Reputation: 0
Mouse cursor missing solved

Hello everyone,
I had an issue with DosBOX, where the mouse cursor was invisible in a game.
Inspired by this thread I looked at my xorg.conf,
and my pointer devices did not have the "SendCoreEvents" option on in the ServerLayout section.
This is something that aticonfig seems to do.

I hope this helps someone.

--
"The path to Enlightenment is /usr/bin/enlightenment"
--Unknown

Vermind
 
Old 06-05-2007, 09:59 AM   #14
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,271

Rep: Reputation: 63
Welcome to LQ and, even though you posted in an old thread, you did some fine troubleshooting. That's one reason I always prefer to manually edit config files. An automated utility will do a pretty good job but, as you discovered, tends to miss some little things.
 
Old 06-14-2009, 04:35 PM   #15
ShadowBit
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Sorry to resurrect a very old thread, but I found it while googling for a similar problem that I had with Dosbox 0.73 on Slackware. Since I've now fixed my problem I thought of posting it here in case it may be useful to someone else.
Quote:
Originally Posted by smannell View Post
Once any program in dosbox has control of the mouse it always moves down and to the right. It doesn't matter what the program is, or when I have it grab the mouse. The mouse driver in dosbox must not be communicating properly with X-windows.
I found that for me the problem was a "sensitivity" setting too high in the dosbox config file, reduced it and the mouse works fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System reboots from mouse movement 24jedi Linux - Hardware 2 06-03-2005 09:42 AM
Choppy mouse movement with xorg 6.7.0-11 tommyr1216 Linux - Hardware 5 01-23-2005 01:48 AM
usb mouse in X has only horizontal movement quantum_comp Linux - Hardware 6 09-23-2004 06:02 PM
SlackWare 9.1 Mouse-Constant Movement Zero-0-Effect Slackware 6 12-21-2003 08:43 AM
Optical mouse and choppy movement sienarot Linux - Hardware 7 07-06-2003 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration