Previous Thread
Next Thread
Print Thread
Mouse behaviour in Mac driver #116373 11/08/19 11:21 PM
Joined: May 1999
Posts: 576
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 576
Hi,

I just tried the mac driver in MAME again since ages and it runs System 7 quite well.

One issue I'm having is the "proportional" positioning of the mouse pointer in the emulated machine in reference to the mouse on my real machine. Is there any way to have the emulated mouse just get set at the same position as the host machine and, whenever it is out of bounds of the emulation window it freezes at the point of exit, like in VMWare Fusion or Parallels Desktop?

Re: Mouse behaviour in Mac driver [Re: Carbon] #116374 11/09/19 12:23 AM
Joined: Mar 2001
Posts: 16,590
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,590
That would require the MAME C++ code knowing about MacOS internals, which is something we obviously don't want to do.

If Lua scripts could know the mouse pointer's position in the window you could map the mouse inputs to nothing and have a script drive the pointer, but I don't think that's currently possible.

Re: Mouse behaviour in Mac driver [Re: Carbon] #116377 11/09/19 12:42 PM
Joined: May 1999
Posts: 576
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 576
OK, a workaround would be to use the driver in full screen mode (but the aspect ratio of the screens have to match).

Re: Mouse behaviour in Mac driver [Re: R. Belmont] #116869 02/17/20 04:30 PM
Joined: Jan 2020
Posts: 1
R
Rich Cini Offline
Member
Offline
Member
R
Joined: Jan 2020
Posts: 1
I know this clipping does not occur in the OSX port (SDL Mame) of v0.217 but it seems to make logical sense to implement it, especially on spinner or trackball games. I was playing Centipede last night with the Logitech trackball and found it distracting to have to reorient the mouse. I did better than using the joystick, though :-)

I don't have a Windows install readily available to check if the lack of clipping occurs there as well. I know in the WinAPI there's a way to determine the size of a window (GetWindowRect) so it shouldn't be that hard to do (ha, famous last words of course). I'm sure other windowing systems on other host platforms have similar calls (SDL_GetWindowSize, for example).

Re: Mouse behaviour in Mac driver [Re: Carbon] #116870 02/17/20 05:15 PM
Joined: Mar 2001
Posts: 16,590
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,590
The -mouse switch will confine the pointer to the window on the OS X version; you are talking about a very different use case from Carbon.


Who's Online Now
1 registered members (1 invisible), 57 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,818
Posts116,083
Members4,915
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3