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
3af039a0
Commit
3af039a0
authored
Apr 22, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X gui: Use the scroll wheel to set the sound volume. This may need some tuning though.
parent
e9656584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+21
-0
No files found.
modules/gui/macosx/vout.m
View file @
3af039a0
...
...
@@ -439,6 +439,27 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
return
o_window
;
}
-
(
void
)
scrollWheel
:(
NSEvent
*
)
theEvent
{
VLCControls
*
o_controls
=
(
VLCControls
*
)[[
NSApp
delegate
]
getControls
];
float
f_absvalue
=
[
theEvent
deltaY
]
>
0
.
0
f
?
[
theEvent
deltaY
]
:
-
[
theEvent
deltaY
];
int
i
;
f_absvalue
/=
2
.
0
f
;
f_absvalue
+=
1
.
0
f
;
/* Set the volume */
if
(
f_absvalue
>
1
.
1
f
)
{
for
(
i
=
0
;
i
<
(
int
)
f_absvalue
;
i
++
)
{
if
([
theEvent
deltaY
]
<
0
.
0
f
)
[
o_controls
volumeDown
:
self
];
else
[
o_controls
volumeUp
:
self
];
}
}
}
-
(
void
)
keyDown
:(
NSEvent
*
)
o_event
{
unichar
key
=
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