Modified example from FB for keyboard input for SDL - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +--- Thread: Modified example from FB for keyboard input for SDL (/thread-6132.html) |
Modified example from FB for keyboard input for SDL - BastetFurry - 02-19-2005 Himeowth! I have modified the keymouse.bas programm so that it show a better way to retrive keyboard input for games. Have fun and dont give up coding Code: '' (How to tag this as qbasic code? I have seen it somewhere but dont know how) So Long, The Werelion! Modified example from FB for keyboard input for SDL - dutchtux - 02-20-2005 Well I got it more this way: Code: dim shared keyboardkey(0 to 323) as integer It's I think beter because it looks at all keys and make them 1 if they are pressed. Modified example from FB for keyboard input for SDL - Z!re - 02-20-2005 Code: Dim key as ubyte ptr Code: Dim key as ubyte ptr |