From 823904390a6a99e4bc697f7601d305c6fb937d27 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sat, 3 Oct 2009 17:51:49 +0000 Subject: [PATCH] Add definitions for the rest of the mouse events. --- src/gui/auxiliary/event/handler.cpp | 12 ++++++++++++ src/gui/auxiliary/event/handler.hpp | 17 ++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/gui/auxiliary/event/handler.cpp b/src/gui/auxiliary/event/handler.cpp index cd891a1e1d4..46dfd6fa22b 100644 --- a/src/gui/auxiliary/event/handler.cpp +++ b/src/gui/auxiliary/event/handler.cpp @@ -577,8 +577,20 @@ std::ostream& operator<<(std::ostream& stream, const tevent event) break; case SDL_MIDDLE_BUTTON_DOWN : stream << "SDL middle button down"; break; case SDL_MIDDLE_BUTTON_UP : stream << "SDL middle button up"; break; + case MIDDLE_BUTTON_DOWN : stream << "middle button down"; break; + case MIDDLE_BUTTON_UP : stream << "middle button up"; break; + case MIDDLE_BUTTON_CLICK : stream << "middle button click"; break; + case MIDDLE_BUTTON_DOUBLE_CLICK + : stream << "middle button double click"; + break; case SDL_RIGHT_BUTTON_DOWN : stream << "SDL right button down"; break; case SDL_RIGHT_BUTTON_UP : stream << "SDL right button up"; break; + case RIGHT_BUTTON_DOWN : stream << "right button down"; break; + case RIGHT_BUTTON_UP : stream << "right button up"; break; + case RIGHT_BUTTON_CLICK : stream << "right button click"; break; + case RIGHT_BUTTON_DOUBLE_CLICK + : stream << "right button double click"; + break; case SDL_WHEEL_LEFT : stream << "SDL wheel left"; break; case SDL_WHEEL_RIGHT : stream << "SDL wheel right"; break; case SDL_WHEEL_UP : stream << "SDL wheel up"; break; diff --git a/src/gui/auxiliary/event/handler.hpp b/src/gui/auxiliary/event/handler.hpp index 355439a3496..02bfbeedcbf 100644 --- a/src/gui/auxiliary/event/handler.hpp +++ b/src/gui/auxiliary/event/handler.hpp @@ -72,12 +72,19 @@ enum tevent { * A left mouse button double click event for * a wiget. */ - , SDL_MIDDLE_BUTTON_DOWN /**< A SDL middle mouse button down event. */ , SDL_MIDDLE_BUTTON_UP /**< A SDL middle mouse button up event. */ + , MIDDLE_BUTTON_DOWN /**< See LEFT_BUTTON_DOWN. */ + , MIDDLE_BUTTON_UP /**< See LEFT_BUTTON_UP. */ + , MIDDLE_BUTTON_CLICK /**< See LEFT_BUTTON_CLICK. */ + , MIDDLE_BUTTON_DOUBLE_CLICK /**< See LEFT_BUTTON_DOUBLE_CLICK. */ , SDL_RIGHT_BUTTON_DOWN /**< A SDL right mouse button down event. */ , SDL_RIGHT_BUTTON_UP /**< A SDL right mouse button up event. */ + , RIGHT_BUTTON_DOWN /**< See LEFT_BUTTON_DOWN. */ + , RIGHT_BUTTON_UP /**< See LEFT_BUTTON_UP. */ + , RIGHT_BUTTON_CLICK /**< See LEFT_BUTTON_CLICK. */ + , RIGHT_BUTTON_DOUBLE_CLICK /**< See LEFT_BUTTON_DOUBLE_CLICK. */ , SDL_WHEEL_LEFT /**< A SDL wheel left event. */ , SDL_WHEEL_RIGHT /**< A SDL wheel right event. */ @@ -108,6 +115,14 @@ typedef , boost::mpl::int_ , boost::mpl::int_ , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ + , boost::mpl::int_ , boost::mpl::int_ , boost::mpl::int_ , boost::mpl::int_