remove some dead code, the whole mouse.*pp files

This commit is contained in:
Jérémy Rosen 2007-01-06 10:15:20 +00:00
parent 3194dd1910
commit 15478400bf
6 changed files with 1 additions and 107 deletions

View File

@ -136,6 +136,7 @@ Francesco Gigli (Jaramir)
Jordà Polo (ettin)
Ruben Philipp Wickenhäuser (The Very Uhu)
Zack Kleinfeld
Jonas Kölker
"
[/about]

View File

@ -949,26 +949,6 @@ Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit94]
FileName=src\mouse.cpp
CompileCpp=1
Folder=Wesnoth
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit95]
FileName=src\mouse.hpp
CompileCpp=1
Folder=Wesnoth
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit96]
FileName=src\mouse_events.cpp
CompileCpp=1

View File

@ -79,7 +79,6 @@ wesnoth_SOURCES = \
marked-up_text.cpp \
menu_events.cpp \
minimap.cpp \
mouse.cpp \
mouse_events.cpp \
multiplayer.cpp \
multiplayer_ui.cpp \
@ -186,7 +185,6 @@ wesnoth_editor_SOURCES = \
marked-up_text.cpp \
menu_events.cpp \
minimap.cpp \
mouse.cpp \
mouse_events.cpp \
network.cpp \
network_worker.cpp \
@ -344,7 +342,6 @@ noinst_HEADERS = \
halo.hpp \
variable.hpp \
hotkeys.hpp \
mouse.hpp \
unit_display.hpp \
theme.hpp \
pathutils.hpp \

View File

@ -17,7 +17,6 @@
#include "cursor.hpp"
#include "events.hpp"
#include "gp2x.hpp"
#include "mouse.hpp"
#include "preferences_display.hpp"
#include "sound.hpp"
#include "video.hpp"
@ -331,13 +330,6 @@ void pump()
last_click_y = event.button.y;
}
//mouse wheel support
else if(event.button.button == 4) {
gui::scroll_dec();
} else if(event.button.button == 5) {
gui::scroll_inc();
}
break;
}

View File

@ -1,47 +0,0 @@
/* $Id$ */
/*
Copyright (C) 2003 by David White <davidnwhite@verizon.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#include "global.hpp"
#include "mouse.hpp"
namespace {
int scrollamount_ = 0;
}
namespace gui {
// Current scroll pending
int scrollamount() { return scrollamount_; }
// Reset scroll
void scroll_reset() { scrollamount_ = 0; }
// Scrolling UP or LEFT
void scroll_dec() { --scrollamount_; }
// Scrolling DOWN or RIGHT
void scroll_inc() { ++scrollamount_; }
// Reducing scroll amount
void scroll_reduce() {
if(scrollamount_ > 0) {
--scrollamount_;
} else {
++scrollamount_;
}
}
}

View File

@ -1,29 +0,0 @@
/* $Id$ */
/*
Copyright (C) 2003 by David White <davidnwhite@verizon.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#ifndef MOUSE_H_INCLUDED
#define MOUSE_H_INCLUDED
namespace gui {
void scroll_inc();
void scroll_dec();
void scroll_reduce();
int scrollamount();
void scroll_reset();
}
#endif