sdl2:sdl2.SDL_GetGlobalMouseState

Function SDL_GetGlobalMouseState:Int( x:Int Ptr,y:Int Ptr )