Package org.jdesktop.wonderland.client.input

Examples of org.jdesktop.wonderland.client.input.InputManager.initialize()


        // TODO: low bug: we would like to initialize the input manager BEFORE
        // frame.setVisible. But if we create the camera before frame.setVisible
        // the client window never appears.
        CameraComponent cameraComp = viewManager.getCameraComponent();
        InputManager inputManager = ClientContext.getInputManager();
        inputManager.initialize(frame.getCanvas(), cameraComp);

        // Default Policy: Enable global key and mouse focus everywhere
        // Note: the app base will impose its own (different) policy later
        inputManager.addKeyMouseFocus(inputManager.getGlobalFocusEntity());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.