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
tyrquake
Commits
bc3203a3
Commit
bc3203a3
authored
Oct 13, 2019
by
Libretro-Admin
Browse files
Backport this to Tyrquake -
https://github.com/libretro/vitaquake2/commit/22501895d6fc7ebfac20c6b620787695c53eb025
parent
25761fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/libretro.c
View file @
bc3203a3
...
...
@@ -1446,22 +1446,24 @@ IN_Move(usercmd_t *cmd)
rsy
=
invert_y_axis
*
input_cb
(
0
,
RETRO_DEVICE_ANALOG
,
RETRO_DEVICE_INDEX_ANALOG_RIGHT
,
RETRO_DEVICE_ID_ANALOG_Y
);
if
(
rsx
>
analog_deadzone
||
rsx
<
-
analog_deadzone
)
{
if
(
rsx
>
analog_deadzone
||
rsx
<
-
analog_deadzone
)
{
if
(
rsx
>
analog_deadzone
)
rsx
=
rsx
-
analog_deadzone
;
if
(
rsx
<
-
analog_deadzone
)
rsx
=
rsx
+
analog_deadzone
;
// For now we are sharing the sensitivity with the mouse setting
cl
.
viewangles
[
YAW
]
-=
sensitivity
.
value
*
rsx
/
(
ANALOG_RANGE
-
analog_deadzone
);
cl
.
viewangles
[
YAW
]
-=
(
float
)(
sensitivity
.
value
*
rsx
/
(
ANALOG_RANGE
-
analog_deadzone
)
)
/
(
framerate
/
60
.
0
f
)
;
}
V_StopPitchDrift
();
if
(
rsy
>
analog_deadzone
||
rsy
<
-
analog_deadzone
)
{
if
(
rsy
>
analog_deadzone
||
rsy
<
-
analog_deadzone
)
{
if
(
rsy
>
analog_deadzone
)
rsy
=
rsy
-
analog_deadzone
;
if
(
rsy
<
-
analog_deadzone
)
rsy
=
rsy
+
analog_deadzone
;
cl
.
viewangles
[
PITCH
]
-=
sensitivity
.
value
*
rsy
/
(
ANALOG_RANGE
-
analog_deadzone
);
cl
.
viewangles
[
PITCH
]
-=
(
float
)(
sensitivity
.
value
*
rsy
/
(
ANALOG_RANGE
-
analog_deadzone
)
)
/
(
framerate
/
60
.
0
f
)
;
}
if
(
cl
.
viewangles
[
PITCH
]
>
80
)
...
...
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