britzl / defold-input

Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
MIT License
112 stars 26 forks source link

Updated onscreen documentation #28

Closed Sandstedt closed 2 years ago

Sandstedt commented 2 years ago

Before, it was a bit unclear, for a beginner, that this script need to require the in.onscreen module, and that the example code needs to be in a GUI script file to access the gui methods.

I also added .lua highlight on the code (that's what all the indention changes was for. Except for the first line with the require, all the example code is the same).