Commit ee1f71dd authored by Sam Lantinga's avatar Sam Lantinga

Fixed mouse button index for additional mouse buttons

parent 06050f8b
...@@ -180,7 +180,7 @@ static __inline__ void ConvertNSRect(NSRect *r) ...@@ -180,7 +180,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
button = SDL_BUTTON_MIDDLE; button = SDL_BUTTON_MIDDLE;
break; break;
default: default:
button = [theEvent buttonNumber]; button = [theEvent buttonNumber] + 1;
break; break;
} }
SDL_SendMouseButton(_data->window, SDL_PRESSED, button); SDL_SendMouseButton(_data->window, SDL_PRESSED, button);
...@@ -211,7 +211,7 @@ static __inline__ void ConvertNSRect(NSRect *r) ...@@ -211,7 +211,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
button = SDL_BUTTON_MIDDLE; button = SDL_BUTTON_MIDDLE;
break; break;
default: default:
button = [theEvent buttonNumber]; button = [theEvent buttonNumber] + 1;
break; break;
} }
SDL_SendMouseButton(_data->window, SDL_RELEASED, button); SDL_SendMouseButton(_data->window, SDL_RELEASED, button);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment