ps4_keyboard_options table reference - Stingray Lua API Reference

ps4_keyboard_options table reference

Description

Provides keyboard settings for a call to stingray.PS4ImeDialog.show().

You can create a table, set it up with any of the fields defined here, and pass it to stingray.PS4ImeDialog.show(). Any fields you omit will use the specified default values.

The color values accepted by this table all expect an ARGB value stored in an stingray.Quaternion, with each component ranging from 0-255. You can create such a value by calling stingray.Color(), passing three arguments for an RGB value or four for an ARGB value. To draw a bright yellow line, for example, you would use Color(255, 255, 0).

If you specify any custom color value, you will probably want to specify custom values for all the colors.

Data Members

Default button color.
Function button color.
Symbol button color.

May be any of the PS4ImeDialog enter label constants.

If omitted, the default value of stingray.PS4ImeDialog.ENTER_LABEL_DEFAULT is used.

May be any of the PS4ImeDialog horizontal alignment constants.

If omitted, the default value of stingray.PS4ImeDialog.HALIGN_LEFT is used.

If omitted, the default of 2048 is used.

This value must be a mask composed of one or more of the PS4ImeDialog option flag values.

The default value of 0 means that none of these options are requested.

If omitted, no placeholder text is shown.

This value must be a mask composed of one or more of the PS4ImeDialog language flag values.

The default value of 0 means that all languages are supported.

If omitted, no default text is shown.

If omitted, no placeholder text is shown.

May be any of the PS4ImeDialog keyboard type constants.

If omitted, the default value of stingray.PS4ImeDialog.TYPE_DEFAULT is used.

If omitted, the default value is the user who launched the application (see stingray.PS4.initial_user_id()).

May be any of the PS4ImeDialog vertical alignment constants.

If omitted, the default value of stingray.PS4ImeDialog.VALIGN_TOP is used.

If omitted, the default of 0 is used.

If omitted, the default of 0 is used.