JoystickInfo.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. function JoystickInfo() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.JoystickInfo()
  4. }
  5. Object.defineProperties(this, {
  6. 'deviceID': { enumerable: true, configurable: true, get: JoystickInfo.prototype.__get_deviceID, set: JoystickInfo.prototype.__set_deviceID},
  7. 'deviceIndex': { enumerable: true, configurable: true, get: JoystickInfo.prototype.__get_deviceIndex, set: JoystickInfo.prototype.__set_deviceIndex}
  8. })
  9. }
  10. JoystickInfo.prototype.__get_deviceID = function() {
  11. return Polycode.JoystickInfo__get_deviceID(this.__ptr)
  12. }
  13. JoystickInfo.prototype.__set_deviceID = function(val) {
  14. Polycode.JoystickInfo__set_deviceID(this.__ptr, val)
  15. }
  16. JoystickInfo.prototype.__get_deviceIndex = function() {
  17. return Polycode.JoystickInfo__get_deviceIndex(this.__ptr)
  18. }
  19. JoystickInfo.prototype.__set_deviceIndex = function(val) {
  20. Polycode.JoystickInfo__set_deviceIndex(this.__ptr, val)
  21. }
  22. Duktape.fin(JoystickInfo.prototype, function (x) {
  23. if (x === JoystickInfo.prototype) {
  24. return;
  25. }
  26. Polycode.JoystickInfo__delete(x.__ptr)
  27. })