mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 22:43:54 +00:00
remove some dead code, the whole mouse.*pp files
This commit is contained in:
parent
3194dd1910
commit
15478400bf
@ -136,6 +136,7 @@ Francesco Gigli (Jaramir)
|
|||||||
Jordà Polo (ettin)
|
Jordà Polo (ettin)
|
||||||
Ruben Philipp Wickenhäuser (The Very Uhu)
|
Ruben Philipp Wickenhäuser (The Very Uhu)
|
||||||
Zack Kleinfeld
|
Zack Kleinfeld
|
||||||
|
Jonas Kölker
|
||||||
"
|
"
|
||||||
[/about]
|
[/about]
|
||||||
|
|
||||||
|
20
editor.dev
20
editor.dev
@ -949,26 +949,6 @@ Priority=1000
|
|||||||
OverrideBuildCmd=0
|
OverrideBuildCmd=0
|
||||||
BuildCmd=
|
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]
|
[Unit96]
|
||||||
FileName=src\mouse_events.cpp
|
FileName=src\mouse_events.cpp
|
||||||
CompileCpp=1
|
CompileCpp=1
|
||||||
|
@ -79,7 +79,6 @@ wesnoth_SOURCES = \
|
|||||||
marked-up_text.cpp \
|
marked-up_text.cpp \
|
||||||
menu_events.cpp \
|
menu_events.cpp \
|
||||||
minimap.cpp \
|
minimap.cpp \
|
||||||
mouse.cpp \
|
|
||||||
mouse_events.cpp \
|
mouse_events.cpp \
|
||||||
multiplayer.cpp \
|
multiplayer.cpp \
|
||||||
multiplayer_ui.cpp \
|
multiplayer_ui.cpp \
|
||||||
@ -186,7 +185,6 @@ wesnoth_editor_SOURCES = \
|
|||||||
marked-up_text.cpp \
|
marked-up_text.cpp \
|
||||||
menu_events.cpp \
|
menu_events.cpp \
|
||||||
minimap.cpp \
|
minimap.cpp \
|
||||||
mouse.cpp \
|
|
||||||
mouse_events.cpp \
|
mouse_events.cpp \
|
||||||
network.cpp \
|
network.cpp \
|
||||||
network_worker.cpp \
|
network_worker.cpp \
|
||||||
@ -344,7 +342,6 @@ noinst_HEADERS = \
|
|||||||
halo.hpp \
|
halo.hpp \
|
||||||
variable.hpp \
|
variable.hpp \
|
||||||
hotkeys.hpp \
|
hotkeys.hpp \
|
||||||
mouse.hpp \
|
|
||||||
unit_display.hpp \
|
unit_display.hpp \
|
||||||
theme.hpp \
|
theme.hpp \
|
||||||
pathutils.hpp \
|
pathutils.hpp \
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "cursor.hpp"
|
#include "cursor.hpp"
|
||||||
#include "events.hpp"
|
#include "events.hpp"
|
||||||
#include "gp2x.hpp"
|
#include "gp2x.hpp"
|
||||||
#include "mouse.hpp"
|
|
||||||
#include "preferences_display.hpp"
|
#include "preferences_display.hpp"
|
||||||
#include "sound.hpp"
|
#include "sound.hpp"
|
||||||
#include "video.hpp"
|
#include "video.hpp"
|
||||||
@ -331,13 +330,6 @@ void pump()
|
|||||||
last_click_y = event.button.y;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user