Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
98ed7f65
Commit
98ed7f65
authored
Jan 19, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: make the mouse sensitivity in FSC configurable
Close #9462
parent
6ad9a260
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+4
-2
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+1
-0
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+5
-0
No files found.
modules/gui/qt4/components/controller.cpp
View file @
98ed7f65
...
@@ -770,6 +770,8 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
...
@@ -770,6 +770,8 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
f_opacity
=
var_InheritFloat
(
p_intf
,
"qt-fs-opacity"
);
f_opacity
=
var_InheritFloat
(
p_intf
,
"qt-fs-opacity"
);
#endif
#endif
i_sensitivity
=
var_InheritInteger
(
p_intf
,
"qt-fs-sensitivity"
);
vlc_mutex_init_recursive
(
&
lock
);
vlc_mutex_init_recursive
(
&
lock
);
DCONNECT
(
THEMIM
->
getIM
(),
voutListChanged
(
vout_thread_t
**
,
int
),
DCONNECT
(
THEMIM
->
getIM
(),
voutListChanged
(
vout_thread_t
**
,
int
),
...
@@ -1185,8 +1187,8 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
...
@@ -1185,8 +1187,8 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
b_toShow
=
false
;
b_toShow
=
false
;
if
(
(
i_mouse_last_move_x
==
-
1
||
i_mouse_last_move_y
==
-
1
)
||
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_x
-
i_mousex
)
>
i_sensitivity
||
abs
(
i_mouse_last_move_y
-
i_mousey
)
>
2
)
)
abs
(
i_mouse_last_move_y
-
i_mousey
)
>
i_sensitivity
)
)
{
{
i_mouse_last_move_x
=
i_mousex
;
i_mouse_last_move_x
=
i_mousex
;
i_mouse_last_move_y
=
i_mousey
;
i_mouse_last_move_y
=
i_mousey
;
...
...
modules/gui/qt4/components/controller.hpp
View file @
98ed7f65
...
@@ -319,6 +319,7 @@ private:
...
@@ -319,6 +319,7 @@ private:
int
i_mouse_last_move_y
;
int
i_mouse_last_move_y
;
bool
isWideFSC
;
bool
isWideFSC
;
int
i_sensitivity
;
};
};
#endif
#endif
modules/gui/qt4/qt4.cpp
View file @
98ed7f65
...
@@ -177,6 +177,8 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
...
@@ -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 VOLUME_MAX_TEXT N_( "Maximum Volume displayed" )
#define FULLSCREEN_CONTROL_PIXELS N_( "Fullscreen controller mouse sensitivity" )
static
const
int
i_notification_list
[]
=
static
const
int
i_notification_list
[]
=
{
NOTIFICATION_NEVER
,
NOTIFICATION_MINIMIZED
,
NOTIFICATION_ALWAYS
};
{
NOTIFICATION_NEVER
,
NOTIFICATION_MINIMIZED
,
NOTIFICATION_ALWAYS
};
...
@@ -272,6 +274,9 @@ vlc_module_begin ()
...
@@ -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-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_bool
(
"qt-blingbling"
)
/* Suppressed since 1.0.0 */
add_obsolete_integer
(
"qt-display-mode"
)
/* Suppressed since 1.1.0 */
add_obsolete_integer
(
"qt-display-mode"
)
/* Suppressed since 1.1.0 */
...
...
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