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
Adam Jones
EDuke32
Commits
1b9ee826
Commit
1b9ee826
authored
Apr 13, 2020
by
Adam Jones
Browse files
Bug fix for horizontal gamepad input
parent
12086fff
Pipeline
#16
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
source/duke3d/src/player.cpp
View file @
1b9ee826
...
@@ -3118,7 +3118,7 @@ void P_GetInput(int const playerNum)
...
@@ -3118,7 +3118,7 @@ void P_GetInput(int const playerNum)
else
else
{
{
input
.
q16avel
=
fix16_sadd
(
input
.
q16avel
,
fix16_sdiv
(
fix16_from_int
(
info
.
mousex
),
F16
(
32
)));
input
.
q16avel
=
fix16_sadd
(
input
.
q16avel
,
fix16_sdiv
(
fix16_from_int
(
info
.
mousex
),
F16
(
32
)));
input
.
q16avel
=
fix16_sadd
(
input
.
q16avel
,
fix16_from_int
(
info
.
dyaw
/
analogExtent
*
(
analogTurnAmount
<<
1
))
)
;
input
.
q16avel
=
fix16_sadd
(
input
.
q16avel
,
fix16_from_int
(
info
.
dyaw
)
/
analogExtent
*
(
analogTurnAmount
<<
1
));
}
}
if
(
g_myAimMode
)
if
(
g_myAimMode
)
...
...
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