Page cover

Utilities.Client

Features from ISteamUtil with a few extras from Heathen!

Like what your seeing?

Introduction

using SteamUtils = HeathenEngineering.SteamworksIntegration.API.Utilities.Client;
public static class Utilities.Client

This leverages features of ISteamUtil to simplify working for Steam's Virtual Keyboard and launcher features..

Events

EventAppResumFromSuspend

Invoked when the app regains focus from suspend as seen by Steam Client.

public static UnityEvent EventAppResumFromSuspend => get;

This event has no arguments so its handler will take the form of

void HandleAppResumFromSuspendEvent()
{
    // The app has just resumed
}

EventKeyboardShown

Invoked when the Steam virtual keyboard is shown to the user. This virtual keyboard sends OS Key events so should trigger Unity's input systems normally. It is only shown to the user when you request it via the ShowVirtualKeyboard method.

This event has no arguments

EventKeyboardClosed

Invoked when the Steam virtual keyboard is closed.

This event has no arguments

Fields and Attributes

IP Country

Seconds Since App Active

Server Real Time

Steam UI Language

Big Picture Mode

In VR Mode

In Steam Deck

VR Streaming Enabled

Methods

Set Game Launcher Mode

In game launchers that don't have controller support you can call this to have Steam Input translate the controller input into mouse/kb to navigate the launcher

mode

Whether a launcher is active or not

Start VR Dashboard

Asks Steam to create and render the OpenVR dashboard.

Show Virtual Keyboard

Uses the Show Floating Gamepad Text Input feature of Steam API to display a floating / virtual keyboard over the game and deliver input to the target field.

Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game. The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field.

Pixel Based Position

or

returns true if the floating keyboard was shown, otherwise, false.

mode Selects the keyboard type to use

fieldPosition Coordinate of where to position the floating keyboard

fieldSize Desired size of the floating keyboard

RectTransform Based Position

returns true if the floating keyboard was shown, otherwise, false.

mode Selects the keyboard type to use

RectTransform The rect transform of the input field

Canvas The parent canvas the input field is a member of

Last updated