diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-07 23:10:20 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-07 23:10:20 +0100 |
| commit | 942e786f66f610469bbda89f53cabb98185772d1 (patch) | |
| tree | 486c97600dbe8854fdaae912d53b62b2df5d2ce0 /qml/MainForm.ui.qml | |
| parent | 367b4f04d9b4b92f96d477c6ca3b93e90cd3caf0 (diff) | |
| download | Multimedia-942e786f66f610469bbda89f53cabb98185772d1.tar.gz Multimedia-942e786f66f610469bbda89f53cabb98185772d1.zip | |
Add first steps for isHit detection
Diffstat (limited to 'qml/MainForm.ui.qml')
| -rw-r--r-- | qml/MainForm.ui.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qml/MainForm.ui.qml b/qml/MainForm.ui.qml index 19cc165..981a38f 100644 --- a/qml/MainForm.ui.qml +++ b/qml/MainForm.ui.qml @@ -19,6 +19,14 @@ MMScene { color: "lightgrey" } + MouseArea{ + id: mouseArea + anchors.fill: parent + onPressed: { + //console.log("Scene clicked at X: " + mouse.x + " y" + mouse.y) + mousePressed(mouse.x, mouse.y); + } + } RowLayout { |
