Small Basic Forum

Full Version: Small Basic key tester (w/ no extensions)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Easy!
This key tester program actually worked! (works in v1.3 and even v1.2)
It also respected the dynamic Y pos thing I tried. So Small Basic even accepts math... I'm thinking of a calculator now.
No dependencies.
ID: HSKG394.000
Link: https://smallbasic.com/program/?HSKG394.000
Code:
GraphicsWindow.Title = "Key Test"
GraphicsWindow.KeyDown = Onkey
y = 0

Sub Onkey
  l = GraphicsWindow.LastKey
  GraphicsWindow.DrawText(0,y,l)
  y = y + 10
EndSub