mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-17 21:53:47 +00:00
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:
parent
037d089c4d
commit
62b7442c7d
3 changed files with 9 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue