Fixed mouse button index for additional mouse buttons
This commit is contained in:
parent
06050f8b15
commit
ee1f71dd63
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
button = SDL_BUTTON_MIDDLE;
|
||||
break;
|
||||
default:
|
||||
button = [theEvent buttonNumber];
|
||||
button = [theEvent buttonNumber] + 1;
|
||||
break;
|
||||
}
|
||||
SDL_SendMouseButton(_data->window, SDL_PRESSED, button);
|
||||
|
@ -211,7 +211,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
button = SDL_BUTTON_MIDDLE;
|
||||
break;
|
||||
default:
|
||||
button = [theEvent buttonNumber];
|
||||
button = [theEvent buttonNumber] + 1;
|
||||
break;
|
||||
}
|
||||
SDL_SendMouseButton(_data->window, SDL_RELEASED, button);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue