Retroarch: Windows raw input driver doesn't communicate with FCEUmm or Nestopia

Created on 25 Sep 2017  Â·  18Comments  Â·  Source: libretro/RetroArch

  • Operating System: Windows 7 x64
  • RA version: 1.6.7 stable
  • Cores: FCEUmm and Nestopia (others may be affected)

The windows raw driver does not seem to be sending mouse input to either of those cores regardless of what kind of mouse device I use. Both cores do work as expected with the dinput driver although as mentioned it only supports one mouse/light gun.

Because this affects more than one core in the same way, I created the issue in the RetroArch tracker rather than the trackers for the affected cores.

This issue began as a discussion in the forums: https://forums.libretro.com/t/how-to-configure-mouse-as-light-gun-and-light-gun-as-mouse/8970/63

input

All 18 comments

Windows raw input currently don't support light-gun and pointer devices, only mouse.

If those cores don't support mouse device, than this will wait for that support to be implemented in Windows raw input driver.

If cores do support mouse device and still, with mouse as input device, don't work with Windows raw input driver than it's a input driver issue.

edit: removed

This issue is for relative/standard mice, separate from any light gun or pointer issues. :-) I should have not mentioned the absolute coordinates at all in the OP, I'm editing that part out.

@casdevel I think this situation is what you say: "If cores do support mouse device and still, with mouse as input device, don't work with Windows raw input driver than it's a input driver issue."

Nestopia and FCEUmm cores do support the mouse device when used with other input drivers, only configured with the raw input driver do they have this problem. I think this does mean there is an issue with the Windows raw input driver.

@markwkidd

Nestopia and FCEUmm cores do support the mouse device when used with other input drivers, only configured with the raw input driver do they have this problem. I think this does mean there is an issue with the Windows raw input driver.

Not necessarily.

Core can be set-up to use light-gun or pointer as input device, and input driver can use regular mouse data, convert that to light-gun or pointer data and than supply that converted data to the core. In this case core don't need to support mouse device, and still be able to receive input from regular mouse device (core will think that is using light-gun or pointer).

If core options don't reveal whether core can work with regular mice, source code will.

@casdevel the Nestopia and FCEUmm cores do work with the same mouse if I use a different input driver, for example dinput

Nestopia core supports only light-gun device, FCEUmm core supports mouse only in 'zapper' mode (otherwise it uses pointer device). This is based on sources (I'm not familiar with either cores).
In theory, FCEUmm (if it's in 'zapper' mode) should work with Windows raw input driver.

Basically both cores and input driver have missing functionality. I'm planning to address input driver "part" sometime in the future...

Issues for cores can also be opened, maybe someone will fix core(s) before I fix input driver.

i made the code for zapper in fceumm, or at least on the front end part.
its uses 2 mode which uses RETRO_DEVICE_MOUSE and RETRO_DEVICE_POINTER.

when using RAW driver, RETRO_DEVICE_POINTER does not work, while this works
with other drives.

On Tue, Sep 26, 2017 at 7:24 AM, Zoran Vuckovic notifications@github.com
wrote:

Nestopia core supports only light-gun device, FCEUmm core supports mouse
only in 'zapper' mode (otherwise it uses pointer device). This is based on
sources (I'm not familiar with either cores).
In theory, FCEUmm (if it's in 'zapper' mode) should work with Windows raw
input driver.

Basically both cores and input driver have missing functionality. I'm
planning to address input driver "part" sometime in the future...

Issues for cores can also be opened, maybe someone will fix core(s) before
I fix input driver.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/libretro/RetroArch/issues/5472#issuecomment-332041609,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWPDtj1j6gJhMlA1nEBaqhCr34eqMF5Vks5smDYagaJpZM4Pi-x8
.

@retro-wertz

when using RAW driver, RETRO_DEVICE_POINTER does not work, while this works
with other drives.

Windows raw input driver currently don't support RETRO_DEVICE_POINTER and RETRO_DEVICE_LIGHTGUN.

@markwkidd PR #5515 should fix Nestopia related issues.

That is great, thank you @casdevel . Do you think the FCEUmm problem is caused by something unrelated?

Edit: sorry, I overlooked this post where you explain: https://github.com/libretro/RetroArch/issues/5472#issuecomment-332041609

Also I want to mention that these input updates are generating some very happy buzz over in the RetroPie forums this week. People are starting to test out multi-mouse and several have gotten it working with their arcade cabinet + rpi setups 8-)

@markwkidd Do you know if this works with fceumm yet?

Here are my findings with the latest nightly of RA and the current FCEUmm buildbot build.

The following is true for both dinput and raw input drivers. I navigate to the RA Controls menu with "Chiller" loaded and change User 1 Device Type from auto to Zapper. At this point a crosshair appears that accurately tracks my mouse cursor.

With neither of those input drivers do I seem to have mouse clicks being emulated as firing the Zapper, however. Does that seem like a separate issue or should I leave this one open?

And in nestopia mouse clicks do fire the zapper?

It sounds like a related different issue, but I am not sure if its in the core or frontend. I'm fine with either leaving this issue open or closing it and making a new one. The latter might get more people to see it though?

the mouse-click not working issue but mouse pointer moves when using the "lightgun" for mouse mode is an unrelated issue. its cause is that the NEW lightgun api which replaced the pointer api i used on fceumm does not have a "default" button config so buttons wont work until user binds it (i know i opened this no default config for the new lightgun api thing somewhere/or at least mentioned it....)

Thanks for the explanation, if you recall where that issue is I'll close this one.

Yes I can see that there is no default lightgun trigger mapping for the mouse with a lightgun. That does indeed seem like something that can be fixed, and also something that's unrelated to my original issue.

I don't see an issue on the tracker for adding default gun mappings although I only did a couple of simple searches just now

I created an issue regarding default mouse->trigger mappings so we can close this one: https://github.com/libretro/RetroArch/issues/7904

If that turns out to be a duplicate I will gladly close it as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orbea picture orbea  Â·  3Comments

alki-apps picture alki-apps  Â·  3Comments

hyarsan picture hyarsan  Â·  4Comments

bslenul picture bslenul  Â·  3Comments

sergiobenrocha2 picture sergiobenrocha2  Â·  4Comments