// -------------------- // CONSTRUCTOR // -------------------- public hGamepad(string os, int index) { this._index = index; this.vibration = new hVibration(index, this); if (_index >= 0) { this._fullName = os + "_Gamepad" + index; } else { this._fullName = os + "_AnyGamepad"; } }
// -------------------- // CONSTRUCTOR // -------------------- public hGamepad(int index) { internalIndex = index; vibration = new hVibration(index); if (index == -1) { internalName = "AnyGamepad"; } else { internalName = "Gamepad" + index; } internalFullName = hUtils.os + "_" + internalName; }