mirror of
https://github.com/videolan/vlc.git
synced 2025-01-19 06:08:18 +08:00
parent
6ad9a260b5
commit
98ed7f65a6
@ -770,6 +770,8 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
|
||||
f_opacity = var_InheritFloat( p_intf, "qt-fs-opacity" );
|
||||
#endif
|
||||
|
||||
i_sensitivity = var_InheritInteger( p_intf, "qt-fs-sensitivity" );
|
||||
|
||||
vlc_mutex_init_recursive( &lock );
|
||||
|
||||
DCONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ),
|
||||
@ -1185,8 +1187,8 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
|
||||
|
||||
b_toShow = false;
|
||||
if( ( i_mouse_last_move_x == -1 || i_mouse_last_move_y == -1 ) ||
|
||||
( abs( i_mouse_last_move_x - i_mousex ) > 2 ||
|
||||
abs( i_mouse_last_move_y - i_mousey ) > 2 ) )
|
||||
( abs( i_mouse_last_move_x - i_mousex ) > i_sensitivity ||
|
||||
abs( i_mouse_last_move_y - i_mousey ) > i_sensitivity ) )
|
||||
{
|
||||
i_mouse_last_move_x = i_mousex;
|
||||
i_mouse_last_move_y = i_mousey;
|
||||
|
@ -319,6 +319,7 @@ private:
|
||||
int i_mouse_last_move_y;
|
||||
|
||||
bool isWideFSC;
|
||||
int i_sensitivity;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -177,6 +177,8 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
|
||||
|
||||
#define VOLUME_MAX_TEXT N_( "Maximum Volume displayed" )
|
||||
|
||||
#define FULLSCREEN_CONTROL_PIXELS N_( "Fullscreen controller mouse sensitivity" )
|
||||
|
||||
static const int i_notification_list[] =
|
||||
{ NOTIFICATION_NEVER, NOTIFICATION_MINIMIZED, NOTIFICATION_ALWAYS };
|
||||
|
||||
@ -272,6 +274,9 @@ vlc_module_begin ()
|
||||
|
||||
add_integer_with_range( "qt-max-volume", 125, 60, 300, VOLUME_MAX_TEXT, VOLUME_MAX_TEXT, true)
|
||||
|
||||
add_integer_with_range( "qt-fs-sensitivity", 3, 0, 4000, FULLSCREEN_CONTROL_PIXELS,
|
||||
FULLSCREEN_CONTROL_PIXELS, true)
|
||||
|
||||
add_obsolete_bool( "qt-blingbling" ) /* Suppressed since 1.0.0 */
|
||||
add_obsolete_integer( "qt-display-mode" ) /* Suppressed since 1.1.0 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user