[Scummvm-tracker] [ScummVM] #10366: SDL: Reacquire joystick when reconnected

Bastien Bouclet trac at scummvm.org
Wed Dec 27 07:34:11 CET 2017


#10366: SDL: Reacquire joystick when reconnected
-----------------------+-----------------------
  Reporter:  dafioram  |      Owner:  bgK
      Type:  defect    |     Status:  new
  Priority:  normal    |  Component:  --Other--
Resolution:            |   Keywords:
      Game:            |
-----------------------+-----------------------

Comment (by bgK):

 I added debug traces at level 5 for the SDL joystick hotplug events in
 revision 1fa80ea3a3.

 This is the output I get when trying to hotplug a PS3 controller:

 {{{
 SdlEventSource: Received joystick added event for index '0'
 SdlEventSource: Newly added joystick with index '0' matches
 'joysticky_num', trying to use it
 Using game controller: PS3 Controller
 SdlEventSource: Received joystick removed event for instance id '0'
 SdlEventSource: Newly removed joystick with instance id '0' matches
 currently used joystick, closing current joystick
 SdlEventSource: Received joystick added event for index '0'
 SdlEventSource: Newly added joystick with index '0' matches
 'joysticky_num', trying to use it
 Using game controller: PS3 Controller
 SdlEventSource: Received joystick removed event for instance id '1'
 SdlEventSource: Newly removed joystick with instance id '1' matches
 currently used joystick, closing current joystick
 SdlEventSource: Received joystick added event for index '0'
 SdlEventSource: Newly added joystick with index '0' matches
 'joysticky_num', trying to use it
 Using game controller: PS3 Controller
 }}}

 Can you check what debug traces you get?

--
Ticket URL: <https://bugs.scummvm.org/ticket/10366#comment:4>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list