diff options
author | twinaphex | 2021-08-16 21:53:45 +0200 |
---|---|---|
committer | twinaphex | 2021-08-16 21:53:45 +0200 |
commit | 0cc36302575b2bc3b2f1dc56648f7c8365a70a82 (patch) | |
tree | 7ad2d307e5e1abb53f288ac9d10db3c1d9a1e659 /libretro.h | |
parent | b5b90f70c087d52e302d750486f21e0810af6504 (diff) | |
download | snes9x2005-0cc36302575b2bc3b2f1dc56648f7c8365a70a82.tar.gz snes9x2005-0cc36302575b2bc3b2f1dc56648f7c8365a70a82.tar.bz2 snes9x2005-0cc36302575b2bc3b2f1dc56648f7c8365a70a82.zip |
Update core options
Diffstat (limited to 'libretro.h')
-rw-r--r-- | libretro.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -3519,6 +3519,26 @@ struct retro_core_option_v2_definition * in the retro_core_option_value array, otherwise will be * ignored */ const char *default_value; + + /* Specify the type this option represents so the frontend + * can present the user an alternative input method besides + * a limited list of possible values. + * > If set to "int", all values need to be integers + * and a frontend with support for numerical input will + * allow input of any number betwen the lowest and + * highest defined value. + * > If set to "float", all values need to be numbers + * and a frontend with support for numerical input will + * allow input of any number betwen the lowest and + * highest defined value. + * > If set to "bool", there should be only two values + * "true" and "false" (label can be anything) + * The frontend can choose to show a checkbox for it. + * > If NULL or set to "enum", the frontend will show + * the list of values and input will be limited to them. + * Future versions of the specs could allow this for more + * types or to be "TYPE:MORE:OPTIONS" */ + const char *type_info; }; struct retro_core_options_v2 |