Skip to content

Commit ed72efa

Browse files
Fixed Up example code
1 parent 85527fc commit ed72efa

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

docs/Example/input-window.ezcode

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1+
# project properties : name:Mouse Input Test, window:True
2+
13
method start
4+
// Create Label and Window With Event
25
window w new : text:Input Test! Move the mouse., width:400, height:190, startposition:center
6+
event w close quit
37
label l
8+
9+
// Display Label and Open Window
410
w display l
511
w open
6-
event w close quit
7-
loop 999 {
8-
var mouse : input mouse position
12+
13+
// Loop With Mouse Input
14+
var mouse \!
15+
loop true {
16+
mouse : input mouse position
917
l text:'mouse'
1018
await 50
1119
}
1220
endmethod
1321

1422
method quit
23+
// Quit Program
1524
stop all
1625
endmethod

0 commit comments

Comments
 (0)