MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / get_input_value_float

Method get_input_value_float

src/ui/elements/ui_element.cpp:471–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471float Element::get_input_value_float() {
472 ElementValue value = get_element_value();
473
474 return std::visit(overloaded {
475 [](double d) { return (float)d; },
476 [](float f) { return f; },
477 [](uint32_t u) { return (float)u; },
478 [](std::monostate) { return 0.0f; }
479 }, value);
480}
481
482double Element::get_input_value_double() {
483 ElementValue value = get_element_value();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected