====== Sensing ====== ^ Blocks ^ Description ^ | {{blocks:mousex.png|}} | Report x position of the mouse | | {{blocks:mousey.png|}} | Report y position of the mouse | | {{blocks:mouseisdown.png|}} | Report whether main button is pressed | | {{blocks:touchingmouse.png|}} | Report state of whether instance is touching the mouse | | {{blocks:directiontomouse.png|}} | Report direction to the mouse from the instance | | {{blocks:distancetomouse.png|}} | Report distance to the mouse from the instance | | {{blocks:keyisdown.png|}} | Report whether is key is pressed down | | {{blocks:directionto.png|}} | Report direction to another instance | | {{blocks:distanceto.png|}} | Report distance to another instance | | {{blocks:timer.png|}} | Report time in milliseconds since GP was started | | {{blocks:dateandtime.png|}} | A 6 element array of all date and time elements | | {{blocks:touching.png|}} | Report whether touching another instance | | {{blocks:neighbourswithin.png|}} | Report number of neighbouring instance within a certain radius of this instance | | {{blocks:screencolorat.png|}} | Report the color of a point on the screen | | {{blocks:ask.png|}} | Wait for keyboard input and report the text typed | | {{blocks:menuselection.png|}} | Pop-up a menu from a supplied list and report value selected | | {{blocks:get.png|}} | Report an attribute of this or another instance if drawer opened and object reference supplied |