Keydown / modifiers in 1.12

BlitzMax Forums/BlitzMax Programming/Keydown / modifiers in 1.12

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This seems to work:

' keydown.bmx

' the following code draws a circle if the
' program detects the spacebar is pressed
' and exits when it detects the ESCAPE key has
' been pressed

' DrawOval only seems to work if I set a specific graphics driver
' but DrawRect() works without seting a graphics driver ?????

SetGraphicsDriver GLMax2DDriver() '<<<<< comment this out to test!

Graphics 640,480

While Not KeyHit(KEY_ESCAPE)
Cls

If KeyDown(KEY_SPACE)  Then
	
	SetColor 255,255,0
	DrawOval 50,50,100,100
	
	SetColor 0,0,255
	DrawRect 250, 50, 50, 50
End If
Flip
Wend


DrawOval()only seems to work if I set a specific graphics driver but DrawRect() works without seting a graphics driver?