diff options
author | rubidium <rubidium@openttd.org> | 2008-05-16 23:30:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-16 23:30:10 +0000 |
commit | 758f4a358d9cb1b320d18de766faeef55c4ee3ab (patch) | |
tree | 714a0d69bb2ce8c0edf0478335b26a99930eb464 /src/window.cpp | |
parent | 0b61b6c1d0eda707ce387ab4f41ffbeb35fb685d (diff) | |
download | openttd-758f4a358d9cb1b320d18de766faeef55c4ee3ab.tar.xz |
(svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/src/window.cpp b/src/window.cpp index f759784a2..1b7430aee 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -99,58 +99,6 @@ void Window::OnClick(Point pt, int widget) this->HandleWindowEvent(&e); } -void Window::OnDoubleClick(Point pt, int widget) -{ - WindowEvent e; - e.event = WE_DOUBLE_CLICK; - e.we.click.pt = pt; - e.we.click.widget = widget; - this->HandleWindowEvent(&e); -} - -void Window::OnRightClick(Point pt, int widget) -{ - WindowEvent e; - e.event = WE_RCLICK; - e.we.click.pt = pt; - e.we.click.widget = widget; - this->HandleWindowEvent(&e); -} - -void Window::OnDragDrop(Point pt, int widget) -{ - WindowEvent e; - e.event = WE_DRAGDROP; - e.we.click.pt = pt; - e.we.click.widget = widget; - this->HandleWindowEvent(&e); -} - -void Window::OnScroll(Point delta) -{ - WindowEvent e; - e.event = WE_SCROLL; - e.we.scroll.delta = delta; - this->HandleWindowEvent(&e); -} - -void Window::OnMouseOver(Point pt, int widget) -{ - WindowEvent e; - e.event = WE_MOUSEOVER; - e.we.click.pt = pt; - e.we.click.widget = widget; - this->HandleWindowEvent(&e); -} - -void Window::OnMouseWheel(int wheel) -{ - WindowEvent e; - e.event = WE_MOUSEWHEEL; - e.we.wheel.wheel = wheel; - this->HandleWindowEvent(&e); -} - void Window::OnMouseLoop() { WindowEvent e; @@ -1972,7 +1920,7 @@ void MouseLoop(MouseClick click, int mousewheel) if (mousewheel != 0) { if (_patches.scrollwheel_scrolling == 0) { - /* Send WE_MOUSEWHEEL event to window */ + /* Send mousewheel event to window */ w->OnMouseWheel(mousewheel); } |