🧐
JMRSDK Development
v4.34
v4.34
  • Jio Mixed Reality SDK Documentation
    • Changelog 4.34.1
      • Upgrade Guide 4.34.1
  • 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
    • Branding Guidelines
    • Building to Target Device
      • Merging AndroidManifest
      • Performance Optimization
      • App optimization
    • JioImmerse App For Jio Mixed Reality (JMR) Devices
      • Running the application on Prism (Holoboard)
    • IPD Calibration
  • Publish
    • Licensing Journey In JioImmerse
    • Signing App for App Store
    • Publishing to JioImmerse 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. Controller Input Actions

Touchpad - Touch

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

Vector2 JMRInteraction.GetTouch();

Returns the Vector2 position of the touch coordinates on the trackpad.

Returns (0,0) when the trackpad is not being touched.

When touched in the centre the value is (0.5, 0.5)

When touched from left to right on the horizontal axis keeping the centre in the vertical axis there is a gradual increase of values from (0.0, 0.5) to (1.0, 0.5). You can see the values change in the X-Axis of Vector2.

When Touched from Up to Down through in vertical axis keeping the center in the horizontal axis there is a Gradual Increase From (0.5, 0.0) to (0.5, 1.0). You can see the values change in the Y-Axis of Vector2.

Anywhere else the value is a combination of the same.

To map it from –1 to 1 in place of 0 to 1 use

float xTouch = (TouchData.x - 0.5f) * 2; float yTouch = (TouchData.y - 0.5f) * 2;

PreviousController Input ActionsNextTouchpad - Swipe

Last updated 1 year ago