You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, In future pls add gamepad name variable
for example: I added in init: function
name: t.id,
And on disconnected event i return obj this.onDisconnect(e)
In some cases, it is needed for notifications, which gamepad was connected or disconnected
thank!
The text was updated successfully, but these errors were encountered:
Maybe I misunderstood the request, but the plugin is already doing this: when a controller is connected, the gamepad object is passed as a parameter (the id/name will be in the id property); and on disconnect, the parameter is the id of the disconnected gamepad (instead of the whole object). For example:
gameControl.on('connect',function(gp){// gp is the gamepad, the id is gp.idaddSection(gp.id);}).on('disconnect',function(id){// id of the disconnected gamepadremoveSection(id);});
Hi, In future pls add gamepad name variable
for example: I added in init: function
name: t.id,
And on disconnected event i return obj this.onDisconnect(e)
In some cases, it is needed for notifications, which gamepad was connected or disconnected
thank!
The text was updated successfully, but these errors were encountered: