Software Archive
Read-only legacy content
17061 Diskussionen

HELP,I have some question about PXCMTouchlessController

Ray_L_
Einsteiger
363Aufrufe

The SDK Reference Manual write that I can use the default implementation of the event injection and let the user controls the application with the defined hand gestures.I think it's means that the event injection has been implemented in the SDK,so that the SDK can control mouse and keyboard.BUT there was no response.

            PXCMSenseManager senseManager = PXCMSenseManager.CreateInstance();
            senseManager.EnableTouchlessController();
            senseManager.Init();
            PXCMTouchlessController controller = senseManager.QueryTouchlessController();
            controller.AddGestureActionMapping("v_sign", PXCMTouchlessController.Action.Action_LeftKeyPress);
            //controller.SubscribeEvent(OnFiredUXEvent);
            PXCMTouchlessController.ProfileInfo info;
            //controller.QueryProfile(out info);
            //info.config = PXCMTouchlessController.ProfileInfo.Configuration.Configuration_None;
            //controller.SetProfile(info);
            while (senseManager.AcquireFrame(true) >= pxcmStatus.PXCM_STATUS_NO_ERROR)
            {

                senseManager.ReleaseFrame();

            }

PLEASE forgive my poor english , i can't descript it clearly

0 Kudos
1 Antworten
Piotr_P_
Einsteiger
364Aufrufe

It doesn't work as you describe it. If you want to control mouse or keyboard you must handle events by yourself. Please check the Touchless Controller sample code, you have there example how to control mouse.

Antworten