Skip to content

E_InputTypes

Michael edited this page Jun 12, 2020 · 2 revisions

This is an enum representing the possible data types which may be accepted by an EmuInput box.

enum E_InputTypes {
    STRING      = 0,
    INT         = 1,
    REAL        = 2,
    HEX         = 3,
};
  • A STRING will validate any text input.
  • An INTEGER will validate any whole number (positive or negative, including an exponent, e.g. 2.1e5 in place of 210000).
  • A REAL number will validate any number at all (positive or negative, including an exponent).
  • A HEX number will validate any number written in base-16, which includes the numbers 0 through 9 as well as the letters a through f (case insensitive). Hexadecimal values may not have a fractional part.
Clone this wiki locally