Package org.jnode.driver.video

Examples of org.jnode.driver.video.HardwareCursorAPI


     * @param keyboardHandler keyboard handler
     */
    public MouseHandler(Device fbDevice, Dimension screenSize,
                        EventQueue eventQueue, KeyboardHandler keyboardHandler) {
        this.eventQueue = eventQueue;
        HardwareCursorAPI hwCursor = null;

        try {
            hwCursor = fbDevice.getAPI(HardwareCursorAPI.class);
        } catch (ApiNotFoundException ex) {
            log.info("No hardware-cursor found on device " + fbDevice.getId());
        }

        this.keyboardHandler = keyboardHandler;
        this.hwCursor = hwCursor;
        this.screenSize = screenSize;

        if (hwCursor != null) {
            hwCursor.setCursorImage(JNodeCursors.ARROW);
            hwCursor.setCursorVisible(true);
            hwCursor.setCursorPosition(0, 0);
        }
        this.pointerAPI = new PointerAPIHandler();
        pointerAPI.addPointerListener(this);
        AccessController.doPrivileged(new PrivilegedAction<Void>() {
            public Void run() {
View Full Code Here

TOP

Related Classes of org.jnode.driver.video.HardwareCursorAPI

Copyright © 2018 www.massapicom. 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.