* Use actual attribute constants as defined in SDK headers.
authorUrban Wallasch <urban.wallasch@freenet.de>
Sat, 27 Jul 2019 16:45:35 +0000 (18:45 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Sat, 27 Jul 2019 16:45:35 +0000 (18:45 +0200)
teleshmem.cpp

index 2982bc32a3b67801403164a93c670c7c95da635e..a0b19d2d5af84a5c869ddfbcfa04fccc6d062827 100644 (file)
@@ -165,8 +165,14 @@ SCSAPI_VOID telemetry_configuration(const scs_event_t event, const void *const e
 
     for (const scs_named_value_t *current = info->attributes; current->name; ++current) {
 
-        if ( 0 == strcmp( current->name, "shifter.type" ) )
-            telemetry->shifter = !strcmp( current->value.value_string.value, "manual" );
+        // SCS_TELEMETRY_CONFIG_ATTRIBUTE_shifter_type
+        // SCS_SHIFTER_TYPE_arcade
+        // SCS_SHIFTER_TYPE_automatic
+        // SCS_SHIFTER_TYPE_manual
+        // SCS_SHIFTER_TYPE_hshifter
+        if ( 0 == strcmp( current->name, SCS_TELEMETRY_CONFIG_ATTRIBUTE_shifter_type ) )
+            telemetry->shifter = !strcmp( current->value.value_string.value, SCS_SHIFTER_TYPE_manual )
+                             ||  !strcmp( current->value.value_string.value, SCS_SHIFTER_TYPE_hshifter );
 
 
         log_print("  %s", current->name);