😅
JMRSDK Development
v4.33
v4.33
  • Jio Mixed Reality SDK Documentation
    • Changelog 4.33.0
      • Upgrade Guide 4.33.0
    • Changelog 4.33.13
      • Upgrade Guide 4.33.13
  • Device Information
    • Supported Smartphones
  • Controller Specifications
    • Physical Controllers
    • Virtual Controller / Virtual Keyboard for JioGlass
  • Getting Started
    • Development Platform
    • Setting Up Jio Mixed Reality Project in Unity
    • URP Support
      • Setting Up Your Project With URP
      • Reverting Back to Built-In Render Pipeline
  • JMRSDK
    • JMRSDK Content
    • JMRMixedReality Prefab
    • System Dock
    • JMRRig
      • Local Rig
      • Setting Homepage (Quit functionality)
      • Recenter Application on Resume
  • Develop
    • Editor Emulator
    • JioGlass Controller Interactions
    • Cameras
    • Tesseract Mixed Reality UI Toolkits
    • Examples
  • Interaction
    • Gaze Interaction
      • Gaze and Click
      • Gaze and Dwell
    • Interaction
      • Pointer Manager
        • Examples
    • Interfaces
      • ISelectHandler
      • ISelectClickHandler
      • IFocusable
      • ISwipeHandler
      • ITouchHandler
      • IBackHandler
      • IHomeHandler
      • IMenuHandler
      • IVoiceHandler
      • IFn1Handler
      • IFn2Handler
      • IManipulationHandler
    • Controller Input Actions
      • Touchpad - Touch
      • Touchpad - Swipe
      • Source Buttons
      • Manipulation
    • Actions
    • Device State
      • Device Connected
      • Device Disconnected
      • Battery percentage update
      • Scanning for Device
      • Battery Percentage
  • Voice
    • Voice
      • Speech Events
      • Speech Result
      • Speech Error
      • Speech Session End
      • Speech Cancel
    • Listening
  • Tracking
    • Tracking
      • Coordinate System
    • Tracking Framework
      • TrackerManager Actions
        • Get Head Position
        • Get Head Rotation
        • Get Head Transform
      • TrackerManager Methods
        • Get Head Position
        • Get Head Rotation
        • Get Head Transform
    • Recenter
  • Building and Testing
    • Building to Target Device
      • Merging AndroidManifest
      • Performance Optimization
      • App optimization
    • JioImmerse App For Jio Mixed Reality (TMR) Devices
      • Running the application on Prism (Holoboard)
    • IPD Calibration
  • Publish
    • Licensing Journey
    • Signing App for App Store
    • Publishing to JioGlass Developer Console
    • Publishing to Google Play Store
      • Play Store Upload Journey
  • Capturing and Recording
    • Capture Videos and Screenshots
      • Capturing Screenshot/Videos using scrcpy
      • Capturing Screenshot/Videos using Vysor
  • Troubleshooting
    • FAQs - Develop
    • FAQs - Building to device
      • Gradle
      • Old aaptOptions error fix
    • FAQs - Running and Publishing
    • Laser Point Not Visible
Powered by GitBook
On this page
  1. Interaction
  2. Interfaces

ISwipeHandler

Interface to handle swipe gestures on the touchpad.

Function
Description

OnSwipeCanceled

Called when swipe is cancelled

OnSwipeCompleted

Called when swipe is completed

OnSwipeDown

Called when swiped down

OnSwipeLeft

Called when swiped left

OnSwipeRight

Called when swiped right

OnSwipeStarted

Called when swipe starts

OnSwipeUp

Called when swiped up

OnSwipeUpdated

Called when swipe position updates

using JMRSDK.InputModule;
using UnityEngine;

public class InterfaceExample: MonoBehaviour, ISwipeHandler
{
    public void OnSwipeCanceled(SwipeEventData eventData) {
        Debug.Log("OnSwipeCanceled");
    }
    public void OnSwipeCompleted(SwipeEventData eventData) {
        Debug.Log("OnSwipeCompleted");
    }
    public void OnSwipeDown(SwipeEventData eventData, float delta) {
        Debug.Log("OnSwipeDown");
    }
    public void OnSwipeLeft(SwipeEventData eventData, float delta) {
        Debug.Log("OnSwipeLeft");
    }
    public void OnSwipeRight(SwipeEventData eventData, float delta) {
        Debug.Log("OnSwipeRight");
    }
    public void OnSwipeStarted(SwipeEventData eventData) {
        Debug.Log("OnSwipeStarted");
    }
    public void OnSwipeUp(SwipeEventData eventData, float delta) {
        Debug.Log("OnSwipeUp");
    }
    public void OnSwipeUpdated(SwipeEventData eventData, Vector2 delta) {
        Debug.Log("OnSwipeUpdated");
    }
}

SwipeEventData

Datatype
Variable
Description

EventSystems.BaseInputModule

currentInputModule

Get the currently active Input Module

GameObject

selectedObject

Get the currently selected object

Vector2

SwipeDelta

Amount of swipe moved by the user

float

SwipeTouchTime

Amount of time spent in touch

float

SwipeMovementAmount

Movement done by the user while swiping

Vector2

NormalizedOffset

Offset over the duration of swipe

float

SwipeTime

Amount of time the swipe was registered

float

SwipeAmount

Amount of swipe registered

PreviousIFocusableNextITouchHandler

Last updated 2 years ago