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
2c90cd6d
Commit
2c90cd6d
authored
Jun 01, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mouse wheel scroll for X11 skins
parent
44fb33ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
modules/gui/skins/x11/x11_window.cpp
modules/gui/skins/x11/x11_window.cpp
+15
-17
No files found.
modules/gui/skins/x11/x11_window.cpp
View file @
2c90cd6d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* x11_window.cpp: X11 implementation of the Window class
* x11_window.cpp: X11 implementation of the Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: x11_window.cpp,v 1.
7 2003/05/26 02:09:27 gbazin
Exp $
* $Id: x11_window.cpp,v 1.
8 2003/06/01 17:13:04 asmax
Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -229,6 +229,20 @@ bool X11Window::ProcessOSEvent( Event *evt )
...
@@ -229,6 +229,20 @@ bool X11Window::ProcessOSEvent( Event *evt )
RButtonDown
=
false
;
RButtonDown
=
false
;
MouseUp
(
(
int
)(
(
XButtonEvent
*
)
p2
)
->
x
,
MouseUp
(
(
int
)(
(
XButtonEvent
*
)
p2
)
->
x
,
(
int
)(
(
XButtonEvent
*
)
p2
)
->
y
,
2
);
(
int
)(
(
XButtonEvent
*
)
p2
)
->
y
,
2
);
break
;
case
4
:
// Scroll up
MouseScroll
(
(
int
)(
(
XButtonEvent
*
)
p2
)
->
x
,
(
int
)(
(
XButtonEvent
*
)
p2
)
->
y
,
MOUSE_SCROLL_UP
);
break
;
case
5
:
// Scroll down
MouseScroll
(
(
int
)(
(
XButtonEvent
*
)
p2
)
->
x
,
(
int
)(
(
XButtonEvent
*
)
p2
)
->
y
,
MOUSE_SCROLL_DOWN
);
break
;
break
;
default:
default:
...
@@ -248,22 +262,6 @@ bool X11Window::ProcessOSEvent( Event *evt )
...
@@ -248,22 +262,6 @@ bool X11Window::ProcessOSEvent( Event *evt )
case GDK_DROP_START:
case GDK_DROP_START:
DropObject->HandleDropStart( ( (GdkEventDND *)p2 )->context );
DropObject->HandleDropStart( ( (GdkEventDND *)p2 )->context );
return true;
return true;
case GDK_SCROLL:
switch( ( (GdkEventScroll *)p2 )->direction )
{
case GDK_SCROLL_UP:
MouseScroll( ( (GdkEventScroll *)p2 )->x,
( (GdkEventScroll *)p2 )->y,
MOUSE_SCROLL_UP);
break;
case GDK_SCROLL_DOWN:
MouseScroll( ( (GdkEventScroll *)p2 )->x,
( (GdkEventScroll *)p2 )->y,
MOUSE_SCROLL_DOWN);
break;
}
return true;
*/
*/
default:
default:
return
false
;
return
false
;
...
...
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