5-way navigational key

June 2, 2017

Introduction

evive has inbuilt 5-way navigational (or Joystick), which is used to navigate in evive menu based system. The navigational key has 4 directions: left, right, up and down. This information is provided by the analog pin A11.

Joystick or 5-way Navigation Key

Getting Joystick input from Arduino IDE

Example

The sample code is provided below:

The center switch is connected to the digital pin 19 inactive or high mode. This means that if the switch is pressed, then pin 19 is high, otherwise, the pin is LOW.

Getting Joystick Input in PictoBlox (Scratch)

You can get the state of evive Joystick using Navigation key is in () direction. This block can be found under the Robots palette in the evive extension. This block checks if the navigation key is in one of the four particular directions. The direction for which you wish to check is your choice and can be chosen from the drop down on the block.

navigation key is in state

evive Notes Icon
Note: This block can be used in Upload Mode as well as in Stage Mode.

Example

  • In this script, the sprite moves up, down, left and right according to using the navigation key.

navigation key example

 

Share this Documentation
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Tutorials & Projects
navigation key is in state

navigation key is in state () ?

evive has a 5-way navigation key, 4 of them are for up, down, right and left direction. This block checks if the navigation key is in one of the four particular directions. The direction for which you wish to check is your choice and can be chosen from the drop down on the block.
All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart