mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 14:34:53 +00:00
Add definitions for the rest of the mouse events.
This commit is contained in:
parent
6621162ec3
commit
823904390a
@ -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;
|
||||
|
@ -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_<LEFT_BUTTON_UP>
|
||||
, boost::mpl::int_<LEFT_BUTTON_CLICK>
|
||||
, boost::mpl::int_<LEFT_BUTTON_DOUBLE_CLICK>
|
||||
, boost::mpl::int_<MIDDLE_BUTTON_DOWN>
|
||||
, boost::mpl::int_<MIDDLE_BUTTON_UP>
|
||||
, boost::mpl::int_<MIDDLE_BUTTON_CLICK>
|
||||
, boost::mpl::int_<MIDDLE_BUTTON_DOUBLE_CLICK>
|
||||
, boost::mpl::int_<RIGHT_BUTTON_DOWN>
|
||||
, boost::mpl::int_<RIGHT_BUTTON_UP>
|
||||
, boost::mpl::int_<RIGHT_BUTTON_CLICK>
|
||||
, boost::mpl::int_<RIGHT_BUTTON_DOUBLE_CLICK>
|
||||
, boost::mpl::int_<SDL_WHEEL_LEFT>
|
||||
, boost::mpl::int_<SDL_WHEEL_RIGHT>
|
||||
, boost::mpl::int_<SDL_WHEEL_UP>
|
||||
|
Loading…
x
Reference in New Issue
Block a user