TV support

To ensure your game works correctly on TV platforms, it must meet the following requirements:

  • The game uses the full screen area and supports full-screen mode.
  • The game supports navigation through interactive elements using TV remote buttons.
  • The game handles the Back and OK buttons on the TV remote.

TV Remote Control

The plugin provides the following for interacting with remote buttons:

  • TV Remote button pressed: True if the selected button is currently held down.
  • On TV Remote button press: Triggered when the player presses the specified button.
  • On TV Remote button release: Triggered when the player releases the specified button.

All these visual blocks can be assigned buttons from the list: Up, Down, Left, Right, and OK.

This allows you to implement TV control support without worrying about platform specifics.

HISTORY_BACK and EXIT Events

The HISTORY_BACK event can be triggered in various ways: by pressing the Back button, voice commands, or gestures.

Key Back button behaviors in game context:

  • Pressed in the game's start menu: Shows a confirmation window to exit the game.
  • Pressed during gameplay: Pauses the game and opens the game menu.
  • Double-pressed during gameplay: Shows a confirmation window to exit the game.

The On History Back event condition in the plugin handles this event.

To exit the game, use Dispatch event with the EXIT parameter.

TV Remote Emulator

The plugin includes a built-in TV remote emulator (activated via F6 key) to simplify testing.

Note

The remote emulator works only in preview mode. It will not function in the release build.


Repository