Logo Search packages:      
Sourcecode: blender version File versions

GHOST_TSuccess GHOST_GetCursorPosition ( GHOST_SystemHandle  systemhandle,
GHOST_TInt32 *  x,
GHOST_TInt32 *  y 

Returns the current location of the cursor (location in screen coordinates)

systemhandle The handle to the system
x The x-coordinate of the cursor.
y The y-coordinate of the cursor.
Indication of success.

Definition at line 329 of file GHOST_C-api.cpp.

References GHOST_ISystem::getCursorPosition(), and GHOST_GetCursorPosition().

Referenced by GHOST_GetCursorPosition().

      GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
      return system->getCursorPosition(*x, *y);

Generated by  Doxygen 1.6.0   Back to index