Qbasicnews.com

Full Version: Mouse
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the sdl FB screen , I see the mouse pointer , how do I tell where the pointer is in my virtual window ( or even the real window )
Thanks ahead Ray.
Get mouse location, and buttons:
Code:
dim XMouse as uinteger
dim YMouse as uinteger
Button = SDL_GetMouseState(@XMouse, @YMouse)

Hide Cursor:
Code:
SDL_ShowCursor(0)

Show cursor:
Code:
SDL_ShowCursor(1)
Thnaks Z , got it working no problem.
Ray