IGlyphProvider¶
Source:
Assets/UpscaleSDK/Core/Input/Runtime/Glyphs/Abstractions/IGlyphProvider.cs
interface IGlyphProvider¶
Defines the contract for the glyph provider.
Methods¶
public Sprite Provide(GamepadGlyph glyph)¶
public Sprite Provide(KeyboardGlyph glyph)¶
public Sprite Provide(MouseGlyph glyph)¶
public Sprite TryProvide<T>(List<IInputSource<T>> sources)¶
Attempts to provide a sprite for the given typed sources, preferring the currently primary device.
public Sprite TryProvide(IEnumerable<IGlyphSource> sources)¶
Attempts to provide a sprite for the given glyph sources, preferring the currently primary device.
public Sprite TryProvide(IEnumerable<IGlyphSource> sources, DeviceType device)¶
Attempts to provide a sprite for a specific device only. Device-specific layout views must use this so they never receive a sprite from a different device based on which device is currently primary.