InputGlyphsSingleton

Inherits: Object

There is currently no description for this class. Please help us by contributing one!

Properties

HBInputType

forced_input_type

Methods

Texture2D

get_glyph_texture ( HBInputOrigin input_origin, int style, HBInputGlyphSize size=3 )

HBInputOrigin

get_origin_from_joy_event ( InputEvent input_event ) const

bool

has_glyph_texture ( HBInputOrigin input_origin, int style, HBInputGlyphSize size=3 )

void

request_glyph_texture_load ( HBInputOrigin input_origin, int style, HBInputGlyphSize size=3 )


Signals

input_type_changed ( )

There is currently no description for this signal. Please help us by contributing one!


Enumerations

enum HBInputOrigin:

HBInputOrigin INPUT_ORIGIN_INVALID = -1

HBInputOrigin INPUT_ORIGIN_A = 0

HBInputOrigin INPUT_ORIGIN_B = 1

HBInputOrigin INPUT_ORIGIN_X = 2

HBInputOrigin INPUT_ORIGIN_Y = 3

HBInputOrigin INPUT_ORIGIN_VIEW = 4

Select/Back

HBInputOrigin INPUT_ORIGIN_MENU = 5

Start

HBInputOrigin INPUT_ORIGIN_LEFTBUMPER = 6

HBInputOrigin INPUT_ORIGIN_RIGHTBUMPER = 7

HBInputOrigin INPUT_ORIGIN_LEFTTRIGGER_PULL = 8

HBInputOrigin INPUT_ORIGIN_LEFTTRIGGER_CLICK = 9

HBInputOrigin INPUT_ORIGIN_RIGHTTRIGGER_PULL = 10

HBInputOrigin INPUT_ORIGIN_RIGHTTRIGGER_CLICK = 11

HBInputOrigin INPUT_ORIGIN_LEFTSTICK_MOVE = 12

HBInputOrigin INPUT_ORIGIN_LEFTSTICK_CLICK = 13

HBInputOrigin INPUT_ORIGIN_LEFTSTICK_DPADNORTH = 14

HBInputOrigin INPUT_ORIGIN_LEFTSTICK_DPADSOUTH = 15

HBInputOrigin INPUT_ORIGIN_LEFTSTICK_DPADWEST = 16

HBInputOrigin INPUT_ORIGIN_LEFTSTICK_DPADEAST = 17

HBInputOrigin INPUT_ORIGIN_RIGHTSTICK_MOVE = 18

HBInputOrigin INPUT_ORIGIN_RIGHTSTICK_CLICK = 19

HBInputOrigin INPUT_ORIGIN_RIGHTSTICK_DPADNORTH = 20

HBInputOrigin INPUT_ORIGIN_RIGHTSTICK_DPADSOUTH = 21

HBInputOrigin INPUT_ORIGIN_RIGHTSTICK_DPADWEST = 22

HBInputOrigin INPUT_ORIGIN_RIGHTSTICK_DPADEAST = 23

HBInputOrigin INPUT_ORIGIN_DPAD_NORTH = 24

HBInputOrigin INPUT_ORIGIN_DPAD_SOUTH = 25

HBInputOrigin INPUT_ORIGIN_DPAD_WEST = 26

HBInputOrigin INPUT_ORIGIN_DPAD_EAST = 27

HBInputOrigin INPUT_ORIGIN_DPAD_MOVE = 28

HBInputOrigin INPUT_ORIGIN_MISC1 = 29

Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button

HBInputOrigin INPUT_ORIGIN_PADDLE1 = 30

Xbox Elite paddle P1 (upper left, facing the back)

HBInputOrigin INPUT_ORIGIN_PADDLE2 = 31

Xbox Elite paddle P3 (upper right, facing the back)

HBInputOrigin INPUT_ORIGIN_PADDLE3 = 32

Xbox Elite paddle P2 (lower left, facing the back)

HBInputOrigin INPUT_ORIGIN_PADDLE4 = 33

Xbox Elite paddle P4 (lower right, facing the back)

HBInputOrigin INPUT_ORIGIN_TRACKPAD_CLICK = 34

HBInputOrigin INPUT_ORIGIN_COUNT = 35


enum HBInputType:

HBInputType UNKNOWN = 0

HBInputType STEAM_CONTROLLER = 1

HBInputType XBOX_360_CONTROLLER = 2

HBInputType XBOX_ONE_CONTROLLER = 3

HBInputType GENERIC_XINPUT_CONTROLLER = 4

HBInputType PS3_CONTROLLER = 5

HBInputType PS4_CONTROLLER = 6

HBInputType PS5_CONTROLLER = 7

HBInputType SWITCH_PRO_CONTROLLER = 8

HBInputType STEAM_DECK_CONTROLLER = 9

HBInputType INPUT_TYPE_MAX = 10


enum HBInputGlyphSize:

HBInputGlyphSize GLYPH_SIZE_SMALL = 0

Small glyph size, usually 32x32.

HBInputGlyphSize GLYPH_SIZE_MEDIUM = 1

Medium glyph size, usually 128x128.

HBInputGlyphSize GLYPH_SIZE_LARGE = 2

Large glyph size, usually 256x256.

HBInputGlyphSize GLYPH_SIZE_MAX = 3


Property Descriptions

HBInputType forced_input_type

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

Texture2D get_glyph_texture ( HBInputOrigin input_origin, int style, HBInputGlyphSize size=3 )

Retrieves the glyph texture, make sure it is already loaded by using has_glyph_texture.


HBInputOrigin get_origin_from_joy_event ( InputEvent input_event ) const

Returns the input origin from the given joy event, it will return INPUT_ORIGIN_INVALID if it couldn’t find any.


bool has_glyph_texture ( HBInputOrigin input_origin, int style, HBInputGlyphSize size=3 )

Returns true if the glyph texture is ready and can be retrieved using get_glyph_texture.


void request_glyph_texture_load ( HBInputOrigin input_origin, int style, HBInputGlyphSize size=3 )

Request a glyph to start loading, does nothing if it’s already loading.