mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +02:00
Merge pull request #11452 from SamGondelman/pos3D
Fix pointer event properties
This commit is contained in:
commit
191066a111
1 changed files with 2 additions and 2 deletions
|
@ -77,13 +77,13 @@ QScriptValue PointerEvent::toScriptValue(QScriptEngine* engine, const PointerEve
|
|||
normal.setProperty("x", event._normal.x);
|
||||
normal.setProperty("y", event._normal.y);
|
||||
normal.setProperty("z", event._normal.z);
|
||||
obj.setProperty("pos3D", normal);
|
||||
obj.setProperty("normal", normal);
|
||||
|
||||
QScriptValue direction = engine->newObject();
|
||||
direction.setProperty("x", event._direction.x);
|
||||
direction.setProperty("y", event._direction.y);
|
||||
direction.setProperty("z", event._direction.z);
|
||||
obj.setProperty("pos3D", direction);
|
||||
obj.setProperty("direction", direction);
|
||||
|
||||
bool isPrimaryButton = false;
|
||||
bool isSecondaryButton = false;
|
||||
|
|
Loading…
Reference in a new issue