LeapMotion Controller Java Language Development Note-(Connection controller)

Source: Internet
Author: User

(1) In order to connect the LeapMotion controller, create the Controllers object, which automatically creates a connection with the controller's service or daemon, and then captures the data provided to your application. You can use this object to obtain connection information.

(2) Get frames: can be obtained through the Controller object's Onframe () method, you can call this method at any time when your program needs to obtain a set of data of the controllers, also can implement the listener interface to obtain.

(3) Previous applications and background applications: The LeapMotion service program typically only sends captured data to applications that have the operating system input focus. If your application is running in the foreground, and you want to know if the LeapMotion service is serving your front-end program, you can use the Controller.hasfocus () method or the event that listens to the controller. When the focus of the application changes, the service object of the controller's service program also changes.

LeapMotion Controller Java Language Development Note-(Connection controller)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.