diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index be7b641a3..6c201a192 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -224,6 +224,8 @@ int CInput::Update() case SDL_MOUSEWHEEL: if(Event.wheel.y > 0) Key = KEY_MOUSE_WHEEL_UP; // ignore_convention if(Event.wheel.y < 0) Key = KEY_MOUSE_WHEEL_DOWN; // ignore_convention + if(Event.wheel.x > 0) Key = KEY_MOUSE_WHEEL_LEFT; // ignore_convention + if(Event.wheel.x < 0) Key = KEY_MOUSE_WHEEL_RIGHT; // ignore_convention Action |= IInput::FLAG_RELEASE; Scancode = Key; break; diff --git a/src/engine/client/keynames.h b/src/engine/client/keynames.h index de98b03ad..56930626e 100644 --- a/src/engine/client/keynames.h +++ b/src/engine/client/keynames.h @@ -428,8 +428,8 @@ const char g_aaKeyStrings[512][20] = "mouse9", "mousewheelup", "mousewheeldown", - "&422", - "&423", + "mousewheelleft", + "mousewheelright", "&424", "&425", "&426", diff --git a/src/engine/keys.h b/src/engine/keys.h index 9f3770945..37a873e46 100644 --- a/src/engine/keys.h +++ b/src/engine/keys.h @@ -254,6 +254,8 @@ enum KEY_MOUSE_9 = 419, KEY_MOUSE_WHEEL_UP = 420, KEY_MOUSE_WHEEL_DOWN = 421, + KEY_MOUSE_WHEEL_LEFT = 422, + KEY_MOUSE_WHEEL_RIGHT = 423, KEY_LAST, };