VOGONS


Mouse in DosBox

Topic actions

First post, by aleks0aleks

User metadata
Rank Newbie
Rank
Newbie

Hi. Sorry for my English. I have problem with DosBox.

I load Borland Pascal 7.0 (programming language program). Windows 7 64 bit. USB-mouse.
When I load this, all works, all are good. I load my program code from compilator. My code work with graphic resulution and mouse support. All work, all are good.
Then, I close my program, and automatically have returned to Pascal compilator. And then I have problems. Mouse cursor is watched, this moved normally, but not work any mouse button. USB keyboard work normally.
Then, I try recompile this program - all work (mouse also now work), but then, if I have been returned to compilator - now mouse did not work. Only cursor moving, but buttons did not work.

And interested bug in this moment: keyboard worked. I can use my Pascal without mouse until program lauching. If I press Ctrl+F9 (in pascal this is program compile) - dos box has been crached. But if I will load this function not with this key combination, but with Alt+R (menu "Run" lauching, and then press Enter (Ctrl+F9 analog)) - all works normally.
I would have thought that the problem in my program, but this bug is not permanent - 50 to 50 without my code changes. In Windows XP by default DOS all work normally.

Conclusion: dos box contain a bug with mouse cursor returning from graphic resolution to text mode (80x25). And Ctrl+F9 combination cannot work after this bug. Full Screen and window screen. All video outputs in DosBox I have tested. Also tested resulutions 640x480, 800x600, 1024x768, 1280x1024. Mouse driver - not loaded, used from Windows. Maybe need to reset the viewport for mouse pointer after videomode changes.

Reply 1 of 4, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Are you using DOSBox 0.74? Whatever this problem is, it may have been fixed in the SVN version.

Either way, DOSBox is principally targeted towards DOS games and compatibility with Pascal 7.0 would be a secondary concern.

Reply 2 of 4, by aleks0aleks

User metadata
Rank Newbie
Rank
Newbie

Yes!

cromwxhjatp1ngfxtuki267xv.png

Pascal is a MS-DOS program. There is no difference: the game or no game. Problem in changing resulutions or from graphic mode to text mode. Maybe peoples has any game with this bug. In text mode and graphic mode all works, but problem only after changing mode (and is not constant, but often). I can test any changes in my PC.

Reply 3 of 4, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
aleks0aleks wrote:

Maybe peoples has any game with this bug.

Maybe they do, but it doesn't seem like anyone has ever mentioned such a game. If you can find a game that exhibits such a problem, then that would be a much stronger case for fixing this bug (if indeed it is a bug).

Reply 4 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

the CTRL-F9 is by design, as that is the "exit/shutdown" key.
You can change that in the keymapper (ctrl-f1)

Water flows down the stream
How to ask questions the smart way!