Difference between revisions of "Keycodes"

From CodeStuff
Jump to: navigation, search
(Created page with "Each key on the keyboard has a unique code. File:Key_mouse_codes.png You can read the status of the keys with <tt>keyIsDown(keyCode)</tt> <edcode> var code = 32; f...")
 
 
Line 8: Line 8:
 
<edcode>
 
<edcode>
  
var code = 32;
+
let code = 32;
 
    
 
    
 
function update(){
 
function update(){

Latest revision as of 06:45, 22 April 2019

Each key on the keyboard has a unique code.


Key mouse codes.png

You can read the status of the keys with keyIsDown(keyCode)