• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 195 196 197 198 199 ... 1198 Next »

Keyboard & Mouse inputs not being recognized
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Keyboard & Mouse inputs not being recognized
05-04-2019, 02:19 PM
#5
gamerk2 Offline
Junior Member
**
Posts: 23
Threads: 1
Joined: Dec 2017
Suspicion confirmed. I think I've got a brute force workaround as well. Note this took a lot longer then I was expecting because I ended up chasing another unrelated issue (which I'll write up shortly).

First off, I'm using 10132 as a base. In this version, input assignment works until the refresh button is clicked a game is launched, in which case inputs stop working again.

What I'm seeing is this: My Keyboard/Mouse is *definitely* being picked up as multiple devices, and post PR7776 it looks like the code isn't accounting that multiple keyboard/mice as a possibility. Inputs work on Dolphin Init by accident; Dinput:TongueopulateDevices() is getting invoked twice and picks up the second device input the second time through. Once a game is started OR the refresh button is hit, Dinput:TongueopulateDevices() only gets invoked once and the second keyboard/mouse device never gets detected again.

I revoked some of the PR changes, and initial testing shows the problem is resolved, though likely breaking the intent of the PR for DirectInput devices in the process. I made the following changes:

ControllerInterface.ccp: Remove the entirety of PR7776.
DinputKeyboardMouse.ccp: Remove the check for duplicate devices (all instances of the use of bool s_keyboard_mouse_exists).

Note there is still a difference between an init and device refresh; on init two separate Dinput device entries are listed (Dinput/0/Keyboard Mouse and Dinput/1/Keyboard Mouse), but after a refresh only the first is listed. Inputs still work though, but I dislike an init and refresh are giving different results.

Someone smarter then me is going to have to come up with a *proper* solution. I can test whatever they come up with to confirm it works.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Keyboard & Mouse inputs not being recognized - gamerk2 - 04-28-2019, 08:44 AM
RE: Keyboard & Mouse inputs not being recognized - gamerk2 - 05-03-2019, 07:33 AM
RE: Keyboard & Mouse inputs not being recognized - JosJuice - 05-03-2019, 07:40 AM
RE: Keyboard & Mouse inputs not being recognized - gamerk2 - 05-04-2019, 05:45 AM
RE: Keyboard & Mouse inputs not being recognized - gamerk2 - 05-04-2019, 02:19 PM
RE: Keyboard & Mouse inputs not being recognized - JMC47 - 05-04-2019, 02:33 PM
RE: Keyboard & Mouse inputs not being recognized - Billiard26 - 05-04-2019, 09:31 PM
RE: Keyboard & Mouse inputs not being recognized - gamerk2 - 05-05-2019, 02:36 AM
RE: Keyboard & Mouse inputs not being recognized - Julie7487 - 05-09-2019, 02:19 PM
RE: Keyboard & Mouse inputs not being recognized - gamerk2 - 05-11-2019, 05:28 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 3 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode