CoreMotionEvent.js 650 B

123456789101112131415161718192021
  1. function CoreMotionEvent() {
  2. Object.defineProperties(this, {
  3. 'amount': { enumerable: true, configurable: true, get: CoreMotionEvent.prototype.__get_amount, set: CoreMotionEvent.prototype.__set_amount}
  4. })
  5. }
  6. CoreMotionEvent.prototype.__get_amount = function() {
  7. var retVal = new Vector3()
  8. retVal.__ptr = Polycode.CoreMotionEvent__get_amount(this.__ptr)
  9. return retVal
  10. }
  11. CoreMotionEvent.prototype.__set_amount = function(val) {
  12. Polycode.CoreMotionEvent__set_amount(this.__ptr, val.__ptr)
  13. }
  14. Duktape.fin(CoreMotionEvent.prototype, function (x) {
  15. if (x === CoreMotionEvent.prototype) {
  16. return;
  17. }
  18. Polycode.CoreMotionEvent__delete(x.__ptr)
  19. })