Input

See our Getting Started pages for guidance on input to Smart console applications and for a demonstration of input from the keyboard into an edit box and from a mouse click on a button in a visual components project.

Several student programs converted to run in Smart Mobile Studio demonstrate input from the keyboard and mouse, but examples here are much simpler. Follow the links below to demonstrations of input from keyboard and from a mouse move, touch move and mouse click in canvas game applications. Most of the programs move an ellipse and use code from the demo Motion1 in the Getting Started section. They all change the values of variables in response to input events then use them in the PaintView procedure, which is called every millisecond.

 

Follow the links below to sections of the input tutorial.

Programming - a skill for life!

Developing graphical web pages including 3D, input from keyboard and mouse and storing and loading data