This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine.InputEventPadTouchMotion Class

Inherits from: InputEvent

This class controls the gamepad physical touch panel event information.

InputEventPadTouchMotion Class

Перечисления (Enums)

ACTION#

ИмяОписание
DOWN = 0Touch state is "pressed".
MOTION = 1Touch state is "pressed and moving".
UP = 2Touch state is "released".

Properties

int ConnectionID#

The connection identifier.

InputEventPadTouchMotion.ACTION Action#

The type of the touch input event, one of the ACTION values.

int Touch#

The index of the gamepad touch panel, the number from 0 to the total number of touch panels.

int TouchFinger#

The index of the finger, the number from 0 to the total number of supported fingers.

vec2 Position#

The normalized position of the touch along the axes from (0,0) to (1,1).

float Pressure#

The pressure with which the finger is currently pressed, a value from 0 (not pressed) to 1 (fully pressed).

Members


InputEventPadTouchMotion ( ) #

Default constructor.

InputEventPadTouchMotion ( ulong timestamp, ivec2 mouse_pos ) #

Touch panel input event constructor.

Arguments

  • ulong timestamp - Timestamp of the event.
  • ivec2 mouse_pos - Position of the mouse.

InputEventPadTouchMotion ( ulong timestamp, ivec2 mouse_pos, int connection_id, int action, int touch, int finger, float pressure, vec2 position ) #

Touch panel input event constructor.

Arguments

  • ulong timestamp - Timestamp of the event.
  • ivec2 mouse_pos - Position of the mouse.
  • int connection_id - The connection identifier.
  • int action - The type of the touch input event, one of the ACTION values.
  • int touch - The index of the gamepad touch panel, the number from 0 to the total number of touch panels.
  • int finger - The index of the finger, the number from 0 to the total number of supported fingers.
  • float pressure - Pressure with which the finger is currently pressed.
  • vec2 position - The normalized position of the touch along the axes from (0,0) to (1,1).
Last update: 19.04.2024
Build: ()