Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a63296bc
Commit
a63296bc
authored
Feb 28, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msw: add support for --[no]-mouse-events and --[no]-keyboard-events
parent
61e1f02d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+21
-0
No files found.
modules/video_output/msw/events.c
View file @
a63296bc
...
...
@@ -129,6 +129,18 @@ static long FAR PASCAL DirectXEventProc( HWND, UINT, WPARAM, LPARAM );
static
int
DirectXConvertKey
(
int
i_key
);
static
inline
bool
isMouseEvent
(
WPARAM
type
)
{
return
type
>=
WM_MOUSEFIRST
&&
type
<=
WM_MOUSELAST
;
}
static
inline
bool
isKeyEvent
(
WPARAM
type
)
{
return
type
>=
WM_KEYFIRST
&&
type
<=
WM_KEYLAST
;
}
/*****************************************************************************
* EventThread: Create video window & handle its messages
*****************************************************************************
...
...
@@ -146,6 +158,9 @@ static void *EventThread( void *p_this )
HMODULE
hkernel32
;
int
canc
=
vlc_savecancel
();
bool
b_mouse_support
=
var_InheritBool
(
p_event
->
vd
,
"mouse-events"
);
bool
b_key_support
=
var_InheritBool
(
p_event
->
vd
,
"keyboard-events"
);
vlc_mutex_lock
(
&
p_event
->
lock
);
/* Create a window for the video */
/* Creating a window under Windows also initializes the thread's event
...
...
@@ -204,6 +219,12 @@ static void *EventThread( void *p_this )
if
(
b_done
)
break
;
if
(
!
b_mouse_support
&&
isMouseEvent
(
msg
.
message
)
)
continue
;
if
(
!
b_key_support
&&
isKeyEvent
(
msg
.
message
)
)
continue
;
/* */
switch
(
msg
.
message
)
{
...
...
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