mamedev / mame

MAME
https://www.mamedev.org/
Other
8.29k stars 2.02k forks source link

win32 as mouseprovider is scaled strange #5113

Open Boojakascha opened 5 years ago

Boojakascha commented 5 years ago

Dear reader

I would love to control MAME light gun games with a laser. I can control the mouse cursor in the options nicely, but in-game just win32 works as mouseprovider. I even compiled a version myself which allowed me to test SDL to no avail.

Sadly win32 seems to be scaled very strange in MAME! The positions overshoot their intended position by far. Using a real computer mouse as input device during -mouseprovider win32 session, indicates that something is wrong in how MAME interprets/uses the win32 input.

Could you check that please?

With kind regards Ben

angelosa commented 3 years ago

I would love to control MAME light gun games with a laser.

Exact device name/id?

Boojakascha commented 3 years ago

We are talking about software, not hardware. I mean it's a laser. It won't communicate with a PC.

angelosa commented 3 years ago

I'm assuming from the context you mean laser pen then. And SW necessarily asks to the HW about what device is connected to.

In other words: please provide a mame foo -verbose output with and without -mouseprovider win32, in particular lines that starts with Input: Adding mouse #

Boojakascha commented 3 years ago

You can look of it as a laser pointer, yes. Any camera films it, and a software translates the light to mouse clicks. The cam identity is irrelevant though.

that's mame [gamename] -verbose and will give you a log, right?

and I shall produce it once with the -mouseprovider win32 parameter and once without?

angelosa commented 3 years ago

It prints a log to stdout yes