TGC Codebase Backup



Quick Way to Get Key Number by MaPo

11th Sep 2008 18:05
Summary

Quick Way to Get Key Number since I'm always forgetting the key number assignments. /* 03/19/2011 I adjusted text size and resolution up for Windows Vista and 7. Those two OSes don



Description



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    cls
hide mouse
setScreenMode()
waitKeypress=1
WHILE waitKeyPress=1
   oldKeyPress=keyPress
   keyPress=SCANCODE()
   inputChar$ = ENTRY$()
   IF oldKeyPress>0 and keyPress=0
      CLS
      CENTER TEXT 512,384, inputChar$ + " = " + str$(oldKeyPress)
      CLEAR ENTRY BUFFER
   ENDIF
ENDWHILE

function setScreenMode()
   set display mode 1024,768,32
   set text size 30
endfunction