<?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 — Mouse Input Query]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2318</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2318&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Mouse Input Query.]]></description>
		<lastBuildDate>Sun, 06 Oct 2024 11:22:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Mouse Input Query]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9670#p9670</link>
			<description><![CDATA[<p>Hi.</p><p>An example of how to create markers using the right mouse button:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class CreateMarkerByRMB : MonoBehaviour
{
    private void Update()
    {
        if (!Input.GetMouseButtonDown(1)) return;
        
        double longitude, latitude;
        if (!OnlineMapsControlBase.instance.GetCoords(out longitude, out latitude)) return;
        OnlineMapsMarkerManager.CreateItem(longitude, latitude, &quot;Marker&quot;);
    }
}</code></pre></div><p>Moving the map using the left mouse button is a built-in behavior and you don&#039;t need to do anything for it.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 06 Oct 2024 11:22:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9670#p9670</guid>
		</item>
		<item>
			<title><![CDATA[Mouse Input Query]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9669#p9669</link>
			<description><![CDATA[<p>Hi,</p><p>As per my design requirement, I need to add <br />- right click to add the marker <br />- left click and drag to drag the map</p><p>i need to understand what will be the correct way to achieve this.<br />Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (ag82lus)]]></author>
			<pubDate>Fri, 04 Oct 2024 13:01:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9669#p9669</guid>
		</item>
	</channel>
</rss>
