🤩
JMRSDK Development
v4.27.10
v4.27.10
  • Tesseract Mixed Reality SDK Documentation
    • Changelog - 4.27.10
  • Device Information
    • Device Specification
    • Controller Specifications
      • Physical Controllers
      • Virtual Controller / Virtual Keyboard for JioGlass
  • Getting Started
    • Development Platform
    • Setting Up A 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
    • JMRRig
      • Local Rig
      • Setting Homepage (Quit functionality)
      • Recenter Application on Resume
  • Develop
    • Editor Emulator
    • JioGlass Controller Interactions
    • Cameras
    • Jio Mixed Reality UI Toolkits
    • Examples
  • Interaction
    • Gaze and Dwell
    • Interaction
      • JioGlass Lite Interaction
      • Jio Prism(Holoboard) Interaction
      • Jio Dive 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
    • Companion App For Jio Mixed Reality (JMR) Devices
      • Running the application on Prism (Holoboard)
    • IPD Calibration
  • Publish
    • Signing App for App Store
    • Publishing to JioGlass Developer Console
    • Developer Console Analytics
  • 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
  • Swipe Up
  • Swipe Down
  • Swipe Left
  • Swipe Right
  1. Interaction
  2. Controller Input Actions

Touchpad - Swipe

Swipe Up/ Down/ Left/ Right

PreviousTouchpad - TouchNextSource Buttons

Last updated 2 years ago

In order to enable the below APIs, you must add JMRInteraction Script to a GameObject in your scene.

Returns true during the frame the user performs swipe using the trackpad. You need to call this function from the function since the state gets reset for each frame. It will not return true until the user releases this key and swipes the trackpad again.

Swipe Up

bool JMRInteraction.GetSwipeUp(out float val);

Returns true if swiped up, also returns swipe up value.

using UnityEngine;
using UnityEngine.UI;
using JMRSDK.InputModule;
using JMRSDK;
 
public class JMRDemoInteractionExample : MonoBehaviour
{
     public void Update()
     {
          bool isSwipeUp=JMRInteraction.GetSwipeUp(out float val);
     }
}

Swipe Down

bool JMRInteraction.GetSwipeDown();

Returns true if swiped down, also returns swipe down value.

using UnityEngine;
using UnityEngine.UI;
using JMRSDK.InputModule;
using JMRSDK;
 
public class JMRDemoInteractionExample : MonoBehaviour
{
     public void Update()
     {
          bool isSwipeDown=JMRInteraction.GetSwipeDown(out float val);
     }
}

Swipe Left

bool JMRInteraction.GetSwipeLeft();

Returns true if swiped left, also returns swipe left value.

using UnityEngine;
using UnityEngine.UI;
using JMRSDK.InputModule;
using JMRSDK;
 
public class JMRDemoInteractionExample : MonoBehaviour
{
     public void Update()
     {
          bool isSwipeLeft=JMRInteraction.GetSwipeLeft(out float val);
     }
}

Swipe Right

bool JMRInteraction.GetSwipeRight();

Returns true if swiped right, also returns swipe right value.

using UnityEngine;
using UnityEngine.UI;
using JMRSDK.InputModule;
using JMRSDK;
 
public class JMRDemoInteractionExample : MonoBehaviour
{
     public void Update()
     {
          bool isSwipeRight=JMRInteraction.GetSwipeRight(out float val);
     }
}
Update