Qbasicnews.com
October 18, 2019, 10:14:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Mouse  (Read 2939 times)
rayjohn01
Member
*
Posts: 58


« on: January 29, 2005, 03:07:15 PM »

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.
Logged
Z!re
*/-\*
*****
Posts: 4599


« Reply #1 on: January 29, 2005, 03:44:42 PM »

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)
Logged
rayjohn01
Member
*
Posts: 58


« Reply #2 on: January 31, 2005, 12:48:41 PM »

Thnaks Z , got it working no problem.
Ray
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!