STAY IN TOUCH

and receive our newsletter to get the latest news and tips.


senses

TouchDevelop provides access to the many types of sensors on modern devices. You can write code to handle user input and sensor data by handling events and using the senses API.
To react to touch input, use the board, sprite, and sprite set objects.
To get keyboard input use the keyboard object.
To get GPS data, use the location object.
To detect device movement, rotation and orientation use the accelerometer object.
To take pictures or display live videos use the camera object.
To record sounds or speech use the microphone object.
IMPORTANT: Access to sensors may vary based on hardware, browser vendor, browser version, mobile operating system etc. Consult the documentation for your device to find out more.