fraser125 / x360ce

Automatically exported from code.google.com/p/x360ce
0 stars 1 forks source link

Hotplugging #401

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using this emulator and you unplug the controller when playing the 
application and later decide to replug, the controller will not initialize 
again in-game. One would have to restart the game in order for the controller 
to work again.

Original issue reported on code.google.com by shinra35...@gmail.com on 1 Jan 2013 at 1:03

GoogleCodeExporter commented 9 years ago
the wrapper doesn't poll directinput for device changes,  doing so would use 
cpu unnecessarily.

Original comment by danialho...@gmail.com on 17 Jan 2013 at 6:05

GoogleCodeExporter commented 9 years ago
Does scarlett.crush's scp wrapper (x360ce wrapper for ps3 controllers) do it a 
different way? His allows hotplugging.

Original comment by shinra35...@gmail.com on 17 Jan 2013 at 4:03

GoogleCodeExporter commented 9 years ago
scarlett.crush's scp wrapper is filter (driver) based, and wrapper operates on 
HID level. x360ce is Xinput to DirectInput wrapper so hotplug is little harder 
to be done. Also almost all PC DirectInput games do not support hot-plug.

Original comment by tapcio on 17 Jan 2013 at 4:24

GoogleCodeExporter commented 9 years ago
Ok, understood.

Original comment by shinra35...@gmail.com on 17 Jan 2013 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by tapcio on 21 Jan 2013 at 11:32

GoogleCodeExporter commented 9 years ago
apparently, Steam manages this by using SDL 2.0 via DI8

Original comment by danialho...@gmail.com on 1 Feb 2013 at 5:10

GoogleCodeExporter commented 9 years ago
Hym, looking at this file (link below), this is initializing DirectInput8 
trough COM. I must add this to hooks too.

Also maybe we can 'borrow' some ffb code :P?

http://hg.libsdl.org/SDL/file/0cd3e2e9b2c5/src/haptic/windows/SDL_syshaptic.c

Original comment by tapcio on 1 Feb 2013 at 8:40

GoogleCodeExporter commented 9 years ago
the only issue i have with sdl is it afaik (in the past) supported only 5 axes 
properly.

Original comment by danialho...@gmail.com on 1 Feb 2013 at 9:02