<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Try to use only in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Touchless-controller-cursor-not-moving/m-p/1021771#M38529</link>
    <description>&lt;P&gt;Try to use only OnFiredUXEvent handler. Here is example how I use it:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;        void OnFiredUXEvent(PXCMTouchlessController.UXEventData uxEventData)
        {
                switch (uxEventData.type)
                {
                    case PXCMTouchlessController.UXEventData.UXEventType.UXEvent_CursorVisible:
                        {
                            // do something
                        }
                        break;
                    case PXCMTouchlessController.UXEventData.UXEventType.UXEvent_CursorNotVisible:
                        {
                            // do something
                        }
                        break;
                    case PXCMTouchlessController.UXEventData.UXEventType.UXEvent_CursorMove:
                        {
                        // do something

                        }
                        break;
                }

            
        }&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2015 13:06:00 GMT</pubDate>
    <dc:creator>Piotr_P_</dc:creator>
    <dc:date>2015-02-02T13:06:00Z</dc:date>
    <item>
      <title>Touchless controller , cursor not moving</title>
      <link>https://community.intel.com/t5/Software-Archive/Touchless-controller-cursor-not-moving/m-p/1021770#M38528</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am trying to write a test touchless program to understand its working, but the cursor doesnt seem to move .\&lt;/P&gt;

&lt;P&gt;It is able to detect which hand is in front of the camera but doesnt move the cursor.&lt;/P&gt;

&lt;P&gt;Here's he code.&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; // Create a SenseManager instance.
            PXCMSenseManager sm = PXCMSenseManager.CreateInstance();

            // Enable the touchless controller feature.
            sm.EnableTouchlessController();

            // Initialize the pipeline
            sm.Init();

            // Get the module instance
            PXCMTouchlessController tc = sm.QueryTouchlessController();

            // register for the ux events
            tc.SubscribeEvent(OnFiredUXEvent);
            tc.SubscribeEvent(UXEvent_CursorVisible);
            tc.SubscribeEvent(UXEvent_CursorMove);

            // Streaming data
            while (sm.AcquireFrame(true) &amp;gt;= pxcmStatus.PXCM_STATUS_NO_ERROR)
            {
                sm.ReleaseFrame();
            }

            // Clean up
            sm.Dispose();
        }

        private void UXEvent_CursorMove(PXCMTouchlessController.UXEventData data)
        {
       
        }

        private void UXEvent_CursorVisible(PXCMTouchlessController.UXEventData data)
        {
            
            textBox1.AppendText(data.bodySide.ToString());
            
        }

        void OnFiredUXEvent(PXCMTouchlessController.UXEventData uxEventData) {
       
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;Pls Help&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Shaleen&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 04:28:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Touchless-controller-cursor-not-moving/m-p/1021770#M38528</guid>
      <dc:creator>HexLord</dc:creator>
      <dc:date>2014-12-12T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Try to use only</title>
      <link>https://community.intel.com/t5/Software-Archive/Touchless-controller-cursor-not-moving/m-p/1021771#M38529</link>
      <description>&lt;P&gt;Try to use only OnFiredUXEvent handler. Here is example how I use it:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;        void OnFiredUXEvent(PXCMTouchlessController.UXEventData uxEventData)
        {
                switch (uxEventData.type)
                {
                    case PXCMTouchlessController.UXEventData.UXEventType.UXEvent_CursorVisible:
                        {
                            // do something
                        }
                        break;
                    case PXCMTouchlessController.UXEventData.UXEventType.UXEvent_CursorNotVisible:
                        {
                            // do something
                        }
                        break;
                    case PXCMTouchlessController.UXEventData.UXEventType.UXEvent_CursorMove:
                        {
                        // do something

                        }
                        break;
                }

            
        }&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 13:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Touchless-controller-cursor-not-moving/m-p/1021771#M38529</guid>
      <dc:creator>Piotr_P_</dc:creator>
      <dc:date>2015-02-02T13:06:00Z</dc:date>
    </item>
  </channel>
</rss>

