Previous Thread
Next Thread
Print Thread
Joined: May 1999
Posts: 576
Carbon Online Content OP
Senior Member
OP Online Content
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?

Joined: Mar 2001
Posts: 16,612
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,612
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.

Joined: May 1999
Posts: 576
Carbon Online Content OP
Senior Member
OP Online Content
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).

Joined: Jan 2020
Posts: 1
R
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).

Joined: Mar 2001
Posts: 16,612
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,612
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.


Link Copied to Clipboard
Who's Online Now
0 members (), 42 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,835
Posts116,216
Members4,921
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.5