Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse
#1
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.
Reply
#2
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)
Reply
#3
Thnaks Z , got it working no problem.
Ray
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)