mirror of
https://github.com/CLfamilaris/VRDOM.git
synced 2024-11-11 22:47:09 +01:00
26 lines
471 B
C#
26 lines
471 B
C#
using Godot;
|
|
|
|
namespace VRDOM;
|
|
|
|
public enum TouchEvents
|
|
{
|
|
TOUCH_DOWN = 0,
|
|
TOUCH_UP = 1,
|
|
TOUCH_MOVE = 2,
|
|
}
|
|
|
|
public class TouchCommand
|
|
{
|
|
public int sensorId;
|
|
public int touchEvent;
|
|
public Vector2 touchPosition;
|
|
public Vector2 touchSize;
|
|
|
|
public TouchCommand(int sensorId, int touchEvent, Vector2 touchPosition, Vector2 touchSize)
|
|
{
|
|
this.sensorId = sensorId;
|
|
this.touchEvent = touchEvent;
|
|
this.touchPosition = touchPosition;
|
|
this.touchSize = touchSize;
|
|
}
|
|
} |