Add support for custom gyro alignment. (#1580)

Add support for custom gyro alignment.
10.7.0-preview
Michael Keller 2019-08-18 12:17:06 +12:00 committed by GitHub
commit 4474fbfc9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -322,6 +322,10 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
'CW 270° flip' 'CW 270° flip'
]; ];
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
alignments.push('Custom');
}
var gyro_align_content_e = $('.tab-configuration .gyro_align_content'); var gyro_align_content_e = $('.tab-configuration .gyro_align_content');
var legacy_gyro_alignment_e = $('.tab-configuration .legacy_gyro_alignment'); var legacy_gyro_alignment_e = $('.tab-configuration .legacy_gyro_alignment');
var legacy_accel_alignment_e = $('.tab-configuration .legacy_accel_alignment'); var legacy_accel_alignment_e = $('.tab-configuration .legacy_accel_alignment');