content/hifi-content/rebecca/testing_utils/mousePressDebug.js
2022-02-14 02:04:11 +01:00

24 lines
No EOL
499 B
JavaScript

// Run this to find why mousePressOnEntity etc is not working
(function() {
var _this;
var MouseDebug = function() {
_this = this;
};
MouseDebug.prototype = {
preload: function(entityID) {
_this.entityID = entityID;
},
mousePressOnEntity: function(entityID, event) {
if (event.isPrimaryButton) {
print("MOUSE PRESS!");
}
}
};
return new MouseDebug();
});