Updates PlatformCursorController to use full set of SDL cursors.

Adds support for the SDL_SYSTEM_CURSOR_WAITARROW and SDL_SYSTEM_CURSOR_NO.
This commit is contained in:
OTHGMars 2018-04-27 21:44:04 -04:00
parent 037d089c4d
commit 62b7442c7d
3 changed files with 9 additions and 4 deletions

View file

@ -43,7 +43,8 @@ static struct { U32 id; LPTSTR resourceID; } sgCursorShapeMap[]=
{ PlatformCursorController::curResizeNESW, IDC_SIZENESW },
{ PlatformCursorController::curResizeNWSE, IDC_SIZENWSE },
{ PlatformCursorController::curHand, IDC_HAND },
{ 0, 0 },
{ PlatformCursorController::curWaitArrow, IDC_WAIT },
{ PlatformCursorController::curNoNo, IDC_NO },
};
//static const EnumTable::Enums curManagerShapesEnums[] =
@ -129,7 +130,7 @@ void Win32CursorController::setCursorShape(U32 cursorID)
{
LPTSTR resourceID = NULL;
for(S32 i = 0;sgCursorShapeMap[i].resourceID != NULL;++i)
for(S32 i = 0; i < numPlatformCursors; ++i)
{
if(cursorID == sgCursorShapeMap[i].id)
{