02-08-2005, 08:30 PM
Nothing wrong with windowed, and nothing wrong with plotting individual pixels either.
0 = Hide
1 = Show
You can ignore result:
Mouse cursor is visible by default in SDL.
To get the mouse position and which button is being pressed:
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)
Code:
result = SDL_ShowCursor ( 0 )
1 = Show
You can ignore result:
Code:
SDL_ShowCursor ( 1 )
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)
Note though, that:
Left mousebutton = 1 (bit 1)
Center mousebutton = 2 (bit 2)
Right mousebutton = 4 (bit 3)