GetKey Bug. No extended key codes!

DOS specific questions.
lassar
Posts: 269
Joined: Jan 17, 2006 1:35
Contact:

GetKey Bug. No extended key codes!

Postby lassar » Apr 24, 2013 21:54

The extended key codes are not working for GetKey.

I am using the GetKey example to test it in dos.


Code: Select all

#LANG "FBLITE"

OPEN "Keys.log" FOR OUTPUT AS #1
Dim As Integer Ky
Do
    Ky = GetKey
    Print "Key Value = " & Ky
    Print #1,"total return: " & Ky
   
    If( Ky > 255 ) Then
        Print "extended code: " & (Ky And &hff)
        Print "regular code: " & (Ky Shr 8)
    Else
        Print "regular code: " & (Ky)
    End If
    Print
Loop Until Ky = 27

SLEEP
CLOSE
END
dkl
Site Admin
Posts: 3196
Joined: Jul 28, 2005 14:45
Location: Germany

Re: GetKey Bug. No extended key codes!

Postby dkl » Apr 24, 2013 22:26

This should be fixed in the next FB release: commit 04d318
lassar
Posts: 269
Joined: Jan 17, 2006 1:35
Contact:

Re: GetKey Bug. No extended key codes!

Postby lassar » Apr 24, 2013 22:37

Any idea when the next release will be ?
dkl
Site Admin
Posts: 3196
Joined: Jul 28, 2005 14:45
Location: Germany

Re: GetKey Bug. No extended key codes!

Postby dkl » Apr 24, 2013 22:42

I'm working on it, it'll be a few more days.

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest