Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LeoD
EDuke32
Commits
c06c78ad
Commit
c06c78ad
authored
Apr 12, 2022
by
Richard Gobeille
Browse files
Duke3d: fix menu navigation with left controller stick when not in a game and no demos are playing
parent
f396417e
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/duke3d/src/demo.cpp
View file @
c06c78ad
...
...
@@ -784,6 +784,8 @@ nextdemo_nomenu:
if
(
engineFPSLimit
((
g_player
[
myconnectindex
].
ps
->
gm
&
MODE_MENU
)
==
MODE_MENU
))
{
G_HandleLocalKeys
();
if
(
foundemo
==
0
)
{
G_DrawBackground
();
...
...
@@ -793,7 +795,6 @@ nextdemo_nomenu:
// NOTE: currently, no key/mouse events will be seen while
// demo-profiling because we need 'totalclock' for ourselves.
// And handleevents() -> sampletimer() would mess that up.
G_HandleLocalKeys
();
// Render one frame (potentially many if profiling)
if
(
Demo_IsProfiling
())
...
...
source/duke3d/src/game.cpp
View file @
c06c78ad
...
...
@@ -4621,7 +4621,7 @@ void G_HandleLocalKeys(void)
// CONTROL_ProcessBinds();
auto
&
myplayer
=
*
g_player
[
myconnectindex
].
ps
;
if
(
ud
.
recstat
==
2
)
if
(
ud
.
recstat
==
2
||
(
myplayer
.
gm
&
MODE_MENU
)
==
MODE_MENU
)
{
ControlInfo
noshareinfo
;
CONTROL_GetInput
(
&
noshareinfo
);
...
...
Write
Preview
Supports
Markdown
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