Added support for double-clicks, through a new "clicks" field in the mouse button event.

This commit is contained in:
Sam Lantinga 2013-12-23 12:17:52 -08:00
parent a78645c99d
commit 11fc41fde2
5 changed files with 75 additions and 5 deletions

View file

@ -250,6 +250,8 @@ WIN_InitMouse(_THIS)
mouse->SetRelativeMouseMode = WIN_SetRelativeMouseMode;
SDL_SetDefaultCursor(WIN_CreateDefaultCursor());
SDL_SetDoubleClickTime(GetDoubleClickTime());
}
void