TouchInfo.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. function TouchInfo() {
  2. Object.defineProperties(this, {
  3. 'id': { enumerable: true, configurable: true, get: TouchInfo.prototype.__get_id, set: TouchInfo.prototype.__set_id},
  4. 'position': { enumerable: true, configurable: true, get: TouchInfo.prototype.__get_position, set: TouchInfo.prototype.__set_position},
  5. 'type': { enumerable: true, configurable: true, get: TouchInfo.prototype.__get_type, set: TouchInfo.prototype.__set_type}
  6. })
  7. }
  8. TouchInfo.prototype.__get_id = function() {
  9. return Polycode.TouchInfo__get_id(this.__ptr)
  10. }
  11. TouchInfo.prototype.__set_id = function(val) {
  12. Polycode.TouchInfo__set_id(this.__ptr, val)
  13. }
  14. TouchInfo.prototype.__get_position = function() {
  15. var retVal = new Vector2()
  16. retVal.__ptr = Polycode.TouchInfo__get_position(this.__ptr)
  17. return retVal
  18. }
  19. TouchInfo.prototype.__set_position = function(val) {
  20. Polycode.TouchInfo__set_position(this.__ptr, val.__ptr)
  21. }
  22. TouchInfo.prototype.__get_type = function() {
  23. return Polycode.TouchInfo__get_type(this.__ptr)
  24. }
  25. TouchInfo.prototype.__set_type = function(val) {
  26. Polycode.TouchInfo__set_type(this.__ptr, val)
  27. }