Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8ca5f440
Commit
8ca5f440
authored
Feb 25, 2010
by
unknown
Committed by
Jean-Paul Saman
Feb 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activex: plugin.cpp: properly translate all booleans to VARIANT_BOOL for events
parent
1ecd16ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
projects/activex/plugin.cpp
projects/activex/plugin.cpp
+4
-4
No files found.
projects/activex/plugin.cpp
View file @
8ca5f440
...
@@ -1214,17 +1214,16 @@ void VLCPlugin::fireOnMouseObjectEvent(VARIANT_BOOL moved)
...
@@ -1214,17 +1214,16 @@ void VLCPlugin::fireOnMouseObjectEvent(VARIANT_BOOL moved)
vlcConnectionPointContainer
->
fireEvent
(
DISPID_MouseObjectEvent
,
&
params
);
vlcConnectionPointContainer
->
fireEvent
(
DISPID_MouseObjectEvent
,
&
params
);
};
};
#define B(val) ((val) ? 0xFFFF : 0x0000)
static
void
handle_mouse_button_pressed_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
static
void
handle_mouse_button_pressed_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
{
{
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
VARIANT_BOOL
btn_right
,
btn_center
,
btn_left
,
btn_wheel_up
,
btn_wheel_down
;
VARIANT_BOOL
btn_right
,
btn_center
,
btn_left
,
btn_wheel_up
,
btn_wheel_down
;
#define B(val) ((val) ? 0xFFFF : 0x0000)
btn_right
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_right
);
btn_right
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_right
);
btn_center
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_center
);
btn_center
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_center
);
btn_left
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_left
);
btn_left
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_left
);
btn_wheel_up
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_wheel_up
);
btn_wheel_up
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_wheel_up
);
btn_wheel_down
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_wheel_down
);
btn_wheel_down
=
B
(
event
->
u
.
media_player_mouse_button
.
mb_wheel_down
);
#undef B
plugin
->
fireOnMouseButtonEvent
(
btn_right
,
btn_center
,
btn_left
,
plugin
->
fireOnMouseButtonEvent
(
btn_right
,
btn_center
,
btn_left
,
btn_wheel_up
,
btn_wheel_down
);
btn_wheel_up
,
btn_wheel_down
);
}
}
...
@@ -1239,14 +1238,15 @@ static void handle_mouse_moved_event(const libvlc_event_t* event, void *param)
...
@@ -1239,14 +1238,15 @@ static void handle_mouse_moved_event(const libvlc_event_t* event, void *param)
static
void
handle_mouse_clicked_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
static
void
handle_mouse_clicked_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
{
{
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
plugin
->
fireOnMouseClickedEvent
(
event
->
u
.
media_player_mouse_clicked
.
clicked
);
plugin
->
fireOnMouseClickedEvent
(
B
(
event
->
u
.
media_player_mouse_clicked
.
clicked
)
);
}
}
static
void
handle_mouse_object_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
static
void
handle_mouse_object_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
{
{
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
plugin
->
fireOnMouseObjectEvent
(
event
->
u
.
media_player_mouse_object
.
moved
);
plugin
->
fireOnMouseObjectEvent
(
B
(
event
->
u
.
media_player_mouse_object
.
moved
)
);
}
}
#undef B
/* */
/* */
...
...
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