mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
[HTML5] Fix gamepad samples not being properly reset.
(cherry picked from commit 93968e1451)
This commit is contained in:
parent
6209eede00
commit
82c83a0636
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ const GodotInputGamepads = {
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function (onchange) {
|
init: function (onchange) {
|
||||||
GodotEventListeners.samples = [];
|
GodotInputGamepads.samples = [];
|
||||||
function add(pad) {
|
function add(pad) {
|
||||||
const guid = GodotInputGamepads.get_guid(pad);
|
const guid = GodotInputGamepads.get_guid(pad);
|
||||||
const c_id = GodotRuntime.allocString(pad.id);
|
const c_id = GodotRuntime.allocString(pad.id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue