<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Usage with VR]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=214</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=214&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Usage with VR.]]></description>
		<lastBuildDate>Fri, 29 Jul 2016 14:04:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Usage with VR]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=993#p993</link>
			<description><![CDATA[<p>Thank you, it seems like i have missed it.</p>]]></description>
			<author><![CDATA[null@example.com (saprophagist)]]></author>
			<pubDate>Fri, 29 Jul 2016 14:04:08 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=993#p993</guid>
		</item>
		<item>
			<title><![CDATA[Re: Usage with VR]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=990#p990</link>
			<description><![CDATA[<p>Hello.</p><p>We have added these features. Please update Online Maps.</p><p>Example (actually, this example is included in the package):<br /></p><div class="codebox"><pre><code>using UnityEngine;

namespace InfinityCode.OnlineMapsExamples
{
    [AddComponentMenu(&quot;Infinity Code/Online Maps/Examples (API Usage)/InterceptInputExample&quot;)]
    public class InterceptInputExample : MonoBehaviour
    {
        private Vector2 OnGetInputPosition()
        {
#if !UNITY_EDITOR
            // On the device returns center of screen.
            return Camera.main.ViewportToScreenPoint(new Vector3(0.5F, 0.5F, 0));
 #else
            // In the editor returns the coordinates of the mouse cursor.
            return Input.mousePosition;
#endif
        }

        private int OnGetTouchCount()
        {
            // If pressed Z, then it will work like the left mouse button.
            return Input.GetKey(KeyCode.Z) ? 1 : 0;
        }

        private void Start()
        {
            // Intercepts getting the cursor coordinates.
            OnlineMapsControlBase.instance.OnGetInputPosition += OnGetInputPosition;

            // Intercepts getting the number of touches.
            OnlineMapsControlBase.instance.OnGetTouchCount += OnGetTouchCount;
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 28 Jul 2016 21:51:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=990#p990</guid>
		</item>
		<item>
			<title><![CDATA[Re: Usage with VR]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=973#p973</link>
			<description><![CDATA[<p>I have to use OnlineMaps on GearVR, in a 3D virtual world. Map stands before me on a plane and i have to be able to click on markers, drag map, etc. with a joystick and gaze point. There is no any mouse input, mousebutton(0) at GearVR / Oculus platform.</p>]]></description>
			<author><![CDATA[null@example.com (saprophagist)]]></author>
			<pubDate>Wed, 27 Jul 2016 15:44:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=973#p973</guid>
		</item>
		<item>
			<title><![CDATA[Re: Usage with VR]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=966#p966</link>
			<description><![CDATA[<p>Hello.</p><p>Please specify the reason for each option.<br />Perhaps I&#039;ll give you a way to do this without modifying the code.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 27 Jul 2016 11:57:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=966#p966</guid>
		</item>
		<item>
			<title><![CDATA[Usage with VR]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=961#p961</link>
			<description><![CDATA[<p>* Could you add an option to change &quot;int touchCount = Input.GetMouseButton(0)&quot; to &quot;Input.GetButton&quot; and/or &quot;Input.GetKey&quot;?<br />* Could you add an option to change &quot;Input.mousePosition&quot; for position to &quot;Camera.main.ViewportToScreenPoint(new Vector3(0.5F, 0.5F, 0))&quot; or something similar?</p>]]></description>
			<author><![CDATA[null@example.com (saprophagist)]]></author>
			<pubDate>Wed, 27 Jul 2016 08:09:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=961#p961</guid>
		</item>
	</channel>
</rss>
