Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Lutro
Commits
5a0e3f00
Commit
5a0e3f00
authored
Apr 20, 2021
by
Jake Stine
Committed by
Jean-Andre Santoni
Apr 24, 2021
Browse files
Fix crash when pressing 2 keys at once [PP emergency patch]
parent
0903c683
Pipeline
#22190
passed with stages
in 9 minutes and 36 seconds
Changes
1
Pipelines
7
Show whitespace changes
Inline
Side-by-side
lutro.c
View file @
5a0e3f00
...
...
@@ -565,7 +565,6 @@ void lutro_gamepadevent(lua_State* L)
lua_getfield
(
L
,
-
1
,
is_down
?
"gamepadpressed"
:
"gamepadreleased"
);
if
(
lua_isfunction
(
L
,
-
1
))
{
lua_pushcfunction
(
L
,
traceback
);
lua_pushnumber
(
L
,
i
);
lua_pushstring
(
L
,
input_find_name
(
joystick_enum
,
i
));
if
(
lutro_pcall
(
L
,
2
,
0
))
...
...
@@ -574,8 +573,8 @@ void lutro_gamepadevent(lua_State* L)
lua_pop
(
L
,
1
);
}
input_cache
[
i
]
=
is_down
;
lua_pop
(
L
,
1
);
}
lua_pop
(
L
,
1
);
}
}
lua_settop
(
L
,
oldtop
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment