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
938d8c45
Commit
938d8c45
authored
Dec 05, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless mouse buttons table
parent
365bb633
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
include/vlc_mouse.h
include/vlc_mouse.h
+3
-2
src/video_output/display.c
src/video_output/display.c
+1
-10
No files found.
include/vlc_mouse.h
View file @
938d8c45
...
...
@@ -25,15 +25,16 @@
#define _VLC_MOUSE_H 1
/**
* Mouse button
* Mouse button
s
*/
enum
{
MOUSE_BUTTON_LEFT
,
MOUSE_BUTTON_LEFT
=
0
,
MOUSE_BUTTON_CENTER
,
MOUSE_BUTTON_RIGHT
,
MOUSE_BUTTON_WHEEL_UP
,
MOUSE_BUTTON_WHEEL_DOWN
,
MOUSE_BUTTON_MAX
};
/**
...
...
src/video_output/display.c
View file @
938d8c45
...
...
@@ -1627,16 +1627,7 @@ void vout_SendDisplayEventMouse(vout_thread_t *vout, const vlc_mouse_t *m)
vout_SendEventMouseMoved
(
vout
,
m
->
i_x
,
m
->
i_y
);
}
if
(
vlc_mouse_HasButton
(
&
vout
->
p
->
mouse
,
m
))
{
static
const
int
buttons
[]
=
{
MOUSE_BUTTON_LEFT
,
MOUSE_BUTTON_CENTER
,
MOUSE_BUTTON_RIGHT
,
MOUSE_BUTTON_WHEEL_UP
,
MOUSE_BUTTON_WHEEL_DOWN
,
-
1
};
for
(
int
i
=
0
;
buttons
[
i
]
>=
0
;
i
++
)
{
const
int
button
=
buttons
[
i
];
for
(
unsigned
button
=
0
;
button
<
MOUSE_BUTTON_MAX
;
button
++
)
{
if
(
vlc_mouse_HasPressed
(
&
vout
->
p
->
mouse
,
m
,
button
))
vout_SendEventMousePressed
(
vout
,
button
);
else
if
(
vlc_mouse_HasReleased
(
&
vout
->
p
->
mouse
,
m
,
button
))
...
...
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