Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Antiquity
#10
Nothing wrong with windowed, and nothing wrong with plotting individual pixels either.

Code:
result = SDL_ShowCursor ( 0 )
0 = Hide
1 = Show

You can ignore result:
Code:
SDL_ShowCursor ( 1 )
Mouse cursor is visible by default in SDL.

To get the mouse position and which button is being pressed:
Code:
Dim XMouse as integer
Dim YMouse as integer

MouseBTN = SDL_GetMouseState(@XMouse, @YMouse)
Would retreive mous x and y position, and which buttons are being pressed.

Note though, that:
Left mousebutton = 1 (bit 1)
Center mousebutton = 2 (bit 2)
Right mousebutton = 4 (bit 3)
Reply


Messages In This Thread
Antiquity - by undertow - 01-10-2005, 07:58 PM
Antiquity - by Z!re - 01-10-2005, 11:20 PM
Antiquity - by v3cz0r - 01-11-2005, 07:46 AM
Antiquity - by undertow - 01-11-2005, 12:05 PM
Antiquity - by undertow - 01-11-2005, 12:14 PM
Antiquity - by Anonymous - 02-08-2005, 07:51 PM
Antiquity - by Z!re - 02-08-2005, 08:10 PM
Antiquity - by VonGodric - 02-08-2005, 08:11 PM
Antiquity - by undertow - 02-08-2005, 08:21 PM
Antiquity - by Z!re - 02-08-2005, 08:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)