[vlc-commits] hotkeys: increase the 360 nav sensitivity
Jean-Baptiste Kempf
git at videolan.org
Sat Dec 3 13:51:01 CET 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec 3 13:50:30 2016 +0100| [fb9ab461aa79943962930941579017cb64745dda] | committer: Jean-Baptiste Kempf
hotkeys: increase the 360 nav sensitivity
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb9ab461aa79943962930941579017cb64745dda
---
modules/control/hotkeys.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index d0391a3..4e4f368 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -116,20 +116,18 @@ static int MovedEvent( vlc_object_t *p_this, char const *psz_var,
if( p_sys->vrnav.b_button_pressed )
{
-#define RAD(d) ((float) ((d) * M_PI / 180.f))
int i_horizontal = newval.coords.x - p_sys->vrnav.x;
int i_vertical = newval.coords.y - p_sys->vrnav.y;
vlc_viewpoint_t viewpoint = {
- .yaw = RAD(-i_horizontal * 2.5f),
- .pitch = RAD(-i_vertical * 2.5f),
+ .yaw = -i_horizontal * 0.05f,
+ .pitch = -i_vertical * 0.05f,
};
input_UpdateViewpoint( p_sys->p_input, &viewpoint, false );
p_sys->vrnav.x = newval.coords.x;
p_sys->vrnav.y = newval.coords.y;
-#undef RAD
}
return VLC_SUCCESS;
More information about the vlc-commits
mailing list