File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3519,6 +3519,26 @@ struct retro_core_option_v2_definition
35193519 * in the retro_core_option_value array, otherwise will be
35203520 * ignored */
35213521 const char * default_value ;
3522+
3523+ /* Specify the type this option represents so the frontend
3524+ * can present the user an alternative input method besides
3525+ * a limited list of possible values.
3526+ * > If set to "int", all values need to be integers
3527+ * and a frontend with support for numerical input will
3528+ * allow input of any number betwen the lowest and
3529+ * highest defined value.
3530+ * > If set to "float", all values need to be numbers
3531+ * and a frontend with support for numerical input will
3532+ * allow input of any number betwen the lowest and
3533+ * highest defined value.
3534+ * > If set to "bool", there should be only two values
3535+ * "true" and "false" (label can be anything)
3536+ * The frontend can choose to show a checkbox for it.
3537+ * > If NULL or set to "enum", the frontend will show
3538+ * the list of values and input will be limited to them.
3539+ * Future versions of the specs could allow this for more
3540+ * types or to be "TYPE:MORE:OPTIONS" */
3541+ const char * type_info ;
35223542};
35233543
35243544struct retro_core_options_v2
You can’t perform that action at this time.
0 commit comments