captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
236 stars 17 forks source link

Mouse does not work properly under Windows 3.1 #80

Closed OldMadMan closed 1 year ago

OldMadMan commented 1 year ago

Hello,

I have been consistently using Tsugaru compiled from the latest code.

I found that the mouse does not work properly under Windows 3.0/3.1. If the mouse is set to be connected to Game Port 1, the mouse cursor will not be able to move, only the double-click action will take effect; if the mouse is set to be connected to Game Port 0, then after entering the system, the cursor will move uncontrollably to the lower right corner, and finally disappear.

captainys commented 1 year ago

Mouse integration works for Windows 3.1 L11 and L12. Mouse integration is not supported on Windows 3.0 and Windows 3.1 L10. For those environments, please use gamepad as mouse or keyboard as mouse option for the time being.

captainys commented 1 year ago

-GAMEPORT1 KEYMOUSE makes arrow keys + ZX keys for mouse. -GAMEPORT1 PHYS0MOUSE makes game pad 0 as mouse. If you want to use analog axis of the game pad, -GAMEPORT1 ANA0MOUSE will do.

qazmko1029 commented 1 year ago

Tried again and it does work, thanks.

captainys commented 1 year ago

OK. Great!

captainys commented 1 year ago

I've just pushed a new source and a utility TGMOUSE.EXE. You first need to use keybouard as mouse or gamepad as mouse to copy this TGMOUSE.EXE to your Windows 3.1 installation and register it in the Start Up program group. Once it is running, it continuously reports Windows 3.1's mouse position to Tsugaru host. It allows Tsugaru to calculate difference between host mouse position and Windows 3.1's mouse position and integrate mouse. It makes MYST Japanese version playable on Tsugaru. Probably it solves mouse-integration issue in Windows 3.1 L10 and hopefully Windows 3.0. TGMOUSE.EXE is included in the disk image under util sub-directory.

qazmko1029 commented 1 year ago

Tried it and it works, thanks! Edit: It won't run in Windows 3.0 but still thanks.

captainys commented 1 year ago

Thank you for testing in your environment! Glad now Tsugaru supports mouse integration in all levels of Windows 3.1 released for Towns!