Browse Source

Support mouse back button in stores/dialogues

pull/5703/merge
Gleb Mazovetskiy 3 years ago
parent
commit
16f7d7e9d6
  1. 9
      Source/diablo.cpp

9
Source/diablo.cpp

@ -623,6 +623,15 @@ void PressKey(SDL_Keycode vkey, uint16_t modState)
void HandleMouseButtonDown(Uint8 button, uint16_t modState)
{
if (stextflag != STORE_NONE && (button == SDL_BUTTON_X1
#if !SDL_VERSION_ATLEAST(2, 0, 0)
|| button == 8
#endif
)) {
StoreESC();
return;
}
if (sgbMouseDown == CLICK_NONE) {
switch (button) {
case SDL_BUTTON_LEFT:

Loading…
Cancel
Save