Qbasicnews.com
Mouse - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: Mouse (/thread-5857.html)



Mouse - rayjohn01 - 01-29-2005

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.


Mouse - Z!re - 01-29-2005

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)



to Z1re - rayjohn01 - 01-31-2005

Thnaks Z , got it working no problem.
Ray