|
@@ -11,22 +11,12 @@ const char* const haptic_text[2] = {
|
|
|
"OFF",
|
|
"OFF",
|
|
|
"ON",
|
|
"ON",
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
const uint32_t haptic_value[2] = {
|
|
const uint32_t haptic_value[2] = {
|
|
|
ColorGuessHapticOff,
|
|
ColorGuessHapticOff,
|
|
|
ColorGuessHapticOn,
|
|
ColorGuessHapticOn,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/* Speaker currently not used
|
|
|
|
|
-const char* const speaker_text[2] = {
|
|
|
|
|
- "OFF",
|
|
|
|
|
- "ON",
|
|
|
|
|
-};
|
|
|
|
|
-const uint32_t speaker_value[2] = {
|
|
|
|
|
- ColorGuessSpeakerOff,
|
|
|
|
|
- ColorGuessSpeakerOn,
|
|
|
|
|
-};
|
|
|
|
|
-*/
|
|
|
|
|
-
|
|
|
|
|
/* Game doesn't make sense with LED off, but the setting is there */
|
|
/* Game doesn't make sense with LED off, but the setting is there */
|
|
|
const char* const led_text[2] = {
|
|
const char* const led_text[2] = {
|
|
|
"OFF",
|
|
"OFF",
|
|
@@ -45,15 +35,6 @@ static void color_guess_scene_settings_set_haptic(VariableItem* item) {
|
|
|
app->haptic = haptic_value[index];
|
|
app->haptic = haptic_value[index];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/*
|
|
|
|
|
-static void color_guess_scene_settings_set_speaker(VariableItem* item) {
|
|
|
|
|
- ColorGuess* app = variable_item_get_context(item);
|
|
|
|
|
- uint8_t index = variable_item_get_current_value_index(item);
|
|
|
|
|
- variable_item_set_current_value_text(item, speaker_text[index]);
|
|
|
|
|
- app->speaker = speaker_value[index];
|
|
|
|
|
-}
|
|
|
|
|
-*/
|
|
|
|
|
-
|
|
|
|
|
static void color_guess_scene_settings_set_led(VariableItem* item) {
|
|
static void color_guess_scene_settings_set_led(VariableItem* item) {
|
|
|
ColorGuess* app = variable_item_get_context(item);
|
|
ColorGuess* app = variable_item_get_context(item);
|
|
|
uint8_t index = variable_item_get_current_value_index(item);
|
|
uint8_t index = variable_item_get_current_value_index(item);
|
|
@@ -78,18 +59,6 @@ void color_guess_scene_settings_on_enter(void* context) {
|
|
|
variable_item_set_current_value_index(item, value_index);
|
|
variable_item_set_current_value_index(item, value_index);
|
|
|
variable_item_set_current_value_text(item, haptic_text[value_index]);
|
|
variable_item_set_current_value_text(item, haptic_text[value_index]);
|
|
|
|
|
|
|
|
- // Sound on/off
|
|
|
|
|
- /*
|
|
|
|
|
- item = variable_item_list_add(
|
|
|
|
|
- app->variable_item_list,
|
|
|
|
|
- "Sound:",
|
|
|
|
|
- 2,
|
|
|
|
|
- color_guess_scene_settings_set_speaker,
|
|
|
|
|
- app);
|
|
|
|
|
- value_index = value_index_uint32(app->speaker, speaker_value, 2);
|
|
|
|
|
- variable_item_set_current_value_index(item, value_index);
|
|
|
|
|
- variable_item_set_current_value_text(item, speaker_text[value_index]);*/
|
|
|
|
|
-
|
|
|
|
|
// LED Effects on/off
|
|
// LED Effects on/off
|
|
|
item = variable_item_list_add(
|
|
item = variable_item_list_add(
|
|
|
app->variable_item_list, "LED FX:", 2, color_guess_scene_settings_set_led, app);
|
|
app->variable_item_list, "LED FX:", 2, color_guess_scene_settings_set_led, app);
|