Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freebasic and CHR$(0) + Arrows Keys Key Codes
#1
Greetings everyone, I'm trying to port my QBasic RPG Engine to FreeBasic and the following code does not work, the arrows keys are not responding:

Code:
SELECT CASE kbd$
   CASE CHR$(0) + "H"
    CALL MoveUp
    WorldData.Action = True
   CASE CHR$(0) + "P"
    CALL MoveDown
    WorldData.Action = True
   CASE CHR$(0) + "K"
    CALL MoveLeft
    WorldData.Action = True
   CASE CHR$(0) + "M"
    CALL MoveRight
    WorldData.Action = True
   CASE CHR$(27)
    END
  END SELECT

So, is there a way to work with arrows keys in FreeBasic?

Thanks!
Reply


Messages In This Thread
Freebasic and CHR$(0) + Arrows Keys Key Codes - by Clay Dragon - 04-14-2007, 06:24 AM
Freebasic and CHR$(0) + Arrows Keys Key Codes - by Anonymous - 04-15-2007, 03:21 AM
Freebasic and CHR$(0) + Arrows Keys Key Codes - by Anonymous - 04-16-2007, 09:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)