Scancodes and keyboard layouts. Germans apply plz.

Blitz3D Forums/Blitz3D Programming/Scancodes and keyboard layouts. Germans apply plz.

I want to have continuous input, which isn't possible with ASCII codes I think.

It is with that dll.

Graphics 800,600,0,2
SetBuffer BackBuffer()
Global scKey

Global KeyUp = Asc("q")
Global KeyDwn = Asc("a")
Global KeyLeft = Asc("o")
Global KeyRight = Asc("p")

Global X,Y
X = 400
Y = 300

While Not KeyDown(1)

	If KeyDown(AsciiToScancode(KeyUp)) Then Y = Y - 4
	If KeyDown(AsciiToScancode(KeyDwn)) Then Y = Y + 4
	If KeyDown(AsciiToScancode(KeyLeft)) Then X = X - 4
	If KeyDown(AsciiToScancode(KeyRight)) Then X = X + 4

	Oval X,Y,80,80,True

	Flip
	Cls

Wend

End