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
514f5dff
Commit
514f5dff
authored
Mar 04, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* this code should allow for the use of gestures under OS X.
parent
f1d93a31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
139 additions
and
4 deletions
+139
-4
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+139
-4
No files found.
modules/gui/macosx/vout.m
View file @
514f5dff
...
...
@@ -2,7 +2,7 @@
* vout.m: MacOS X video output plugin
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: vout.m,v 1.3
5 2003/02/23 05:53:53 jlj
Exp $
* $Id: vout.m,v 1.3
6 2003/03/04 23:32:06 hartman
Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -909,19 +909,116 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
return
(
YES
);
}
-
(
void
)
mouseDown
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
;
id
o_window
=
[
self
window
];
p_vout
=
(
vout_thread_t
*
)[
o_window
getVout
];
vlc_value_t
val
;
switch
(
[
o_event
type
]
)
{
case
NSLeftMouseDown
:
{
var_Get
(
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
1
;
var_Set
(
p_vout
,
"mouse-button-down"
,
val
);
}
break
;
default:
[
super
mouseDown
:
o_event
];
break
;
}
}
-
(
void
)
otherMouseDown
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
;
id
o_window
=
[
self
window
];
p_vout
=
(
vout_thread_t
*
)[
o_window
getVout
];
vlc_value_t
val
;
switch
(
[
o_event
type
]
)
{
case
NSOtherMouseDown
:
{
var_Get
(
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
2
;
var_Set
(
p_vout
,
"mouse-button-down"
,
val
);
}
break
;
default:
[
super
mouseDown
:
o_event
];
break
;
}
}
-
(
void
)
rightMouseDown
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
;
id
o_window
=
[
self
window
];
p_vout
=
(
vout_thread_t
*
)[
o_window
getVout
];
vlc_value_t
val
;
switch
(
[
o_event
type
]
)
{
case
NSRightMouseDown
:
{
var_Get
(
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
4
;
var_Set
(
p_vout
,
"mouse-button-down"
,
val
);
}
break
;
default:
[
super
mouseDown
:
o_event
];
break
;
}
}
-
(
void
)
mouseUp
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
;
id
o_window
=
[
self
window
];
p_vout
=
(
vout_thread_t
*
)[
o_window
getVout
];
vlc_value_t
val
;
switch
(
[
o_event
type
]
)
{
case
NSLeftMouseUp
:
{
vlc_value_t
b_val
;
b_val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"mouse-clicked"
,
b_val
);
var_Get
(
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
&=
~
1
;
var_Set
(
p_vout
,
"mouse-button-down"
,
val
);
}
break
;
default:
[
super
mouseUp
:
o_event
];
break
;
}
}
-
(
void
)
otherMouseUp
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
;
id
o_window
=
[
self
window
];
p_vout
=
(
vout_thread_t
*
)[
o_window
getVout
];
vlc_value_t
val
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"mouse-clicked"
,
val
);
switch
(
[
o_event
type
]
)
{
case
NSOtherMouseUp
:
{
var_Get
(
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
&=
~
2
;
var_Set
(
p_vout
,
"mouse-button-down"
,
val
);
}
break
;
...
...
@@ -931,6 +1028,44 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
}
}
-
(
void
)
rightMouseUp
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
;
id
o_window
=
[
self
window
];
p_vout
=
(
vout_thread_t
*
)[
o_window
getVout
];
vlc_value_t
val
;
switch
(
[
o_event
type
]
)
{
case
NSRightMouseUp
:
{
var_Get
(
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
&=
~
4
;
var_Set
(
p_vout
,
"mouse-button-down"
,
val
);
}
break
;
default:
[
super
mouseUp
:
o_event
];
break
;
}
}
-
(
void
)
mouseDragged
:(
NSEvent
*
)
o_event
{
[
self
mouseMoved
:
o_event
];
}
-
(
void
)
otherMouseDragged
:(
NSEvent
*
)
o_event
{
[
self
mouseMoved
:
o_event
];
}
-
(
void
)
rightMouseDragged
:(
NSEvent
*
)
o_event
{
[
self
mouseMoved
:
o_event
];
}
-
(
void
)
mouseMoved
:(
NSEvent
*
)
o_event
{
NSPoint
ml
;
...
...
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