This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
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
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.InputEventTouch Class

Inherits from: InputEvent

This class controls touch event information.

InputEventTouch Class

Enums

ACTION#

NameDescription
DOWN = 0Touch state is "pressed".
MOTION = 1Touch state is "pressed and moving".
UP = 2Touch state is "released".

Properties

InputEventTouch.ACTION Action#

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

long DeviceID#

The device identifier.

long TouchID#

The touch identifier.

ivec2 Position#

The touch position.

ivec2 Delta#

The delta of the mouse position from the previous event.

float Pressure#

The pressure with which the finger is currently pressed.

Members


InputEventTouch ( ) #

Default constructor.

InputEventTouch ( ulong timestamp, ivec2 mouse_pos ) #

Touch input event constructor.

Arguments

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

InputEventTouch ( ulong timestamp, ivec2 mouse_pos, InputEventTouch.ACTION action, long device_id, long touch_id ) #

Touch input event constructor.

Arguments

  • ulong timestamp - Timestamp of the event.
  • ivec2 mouse_pos - Position of the mouse.
  • InputEventTouch.ACTION action - The type of the touch input event, one of the ACTION values.
  • long device_id - Device identifier.
  • long touch_id - Touch identifier.

InputEventTouch ( ulong timestamp, ivec2 mouse_pos, InputEventTouch.ACTION action, long device_id, long touch_id, ivec2 pos, ivec2 delta, float pressure ) #

Touch input event constructor.

Arguments

  • ulong timestamp - Timestamp of the event.
  • ivec2 mouse_pos - Position of the mouse.
  • InputEventTouch.ACTION action - The type of the touch input event, one of the ACTION values.
  • long device_id - Device identifier.
  • long touch_id - Touch identifier.
  • ivec2 pos - Touch position.
  • ivec2 delta - Delta of the touch position from the previous event.
  • float pressure - Pressure with which the finger is currently pressed.
Last update: 2024-12-13
Build: ()