keypad broken?

BlitzMax Forums/BlitzMax Beginners Area/keypad broken?

Pavlov(Posted 2005) [#1]
I hate to sound like an idiot but is the keypad functionality broken in blitz? I know it isn't my system because Calculator works fine but the following code doesn't. Is there something I have to turn on prior to using KeyHit?

Graphics 1024, 768

Global y:Int = 10

While Not KeyHit(KEY_ESCAPE)
If KeyHit(KEY_2)
DrawText "keyboard", 10, y
y :+ 15
End If
If KeyHit(KEY_NUM2)
DrawText "keypad", 10, y
y :+ 15
End If
Flip
Wend


Perturbatio(Posted 2005) [#2]
works fine for me (Win32), maybe a mac related issue?


Pavlov(Posted 2005) [#3]
Not sure, anyone with a mac have any input <pun intended>?


Perturbatio(Posted 2005) [#4]
Does this terminate when you press a keypad key?
Graphics 640,480,0
WaitKey()
End



Pavlov(Posted 2005) [#5]
nope


Pavlov(Posted 2005) [#6]
Anyone with a mac having any problems with their keypad in blitzmax?


Pavlov(Posted 2006) [#7]
Getting back into Max after a stay of absense.

The following code works when I hit the '1' on the macs keypad.

While Not KeyHit(KEY_ESCAPE)
	If KeyHit(KEY_NUM1) Then Print "key pad 1 hit dude"
Wend