Package org.jnode.driver.input

Examples of org.jnode.driver.input.SystemTriggerAPI


    }

    private void addListeners(Device device) {
        if (device.implementsAPI(SystemTriggerAPI.class)) {
            try {
                final SystemTriggerAPI api = device.getAPI(SystemTriggerAPI.class);
                api.addSystemTriggerListener(debugger);
            } catch (ApiNotFoundException ex) {
                // Ignore
            }
        }
        if (device.implementsAPI(KeyboardAPI.class)) {
            try {
                final KeyboardAPI api = device.getAPI(KeyboardAPI.class);
                api.addKeyboardListener(debugger);
            } catch (ApiNotFoundException ex) {
                // Ignore
            }
        }
    }
View Full Code Here


    }

    private void removeListeners(Device device) {
        if (device.implementsAPI(SystemTriggerAPI.class)) {
            try {
                final SystemTriggerAPI api = device.getAPI(SystemTriggerAPI.class);
                api.removeSystemTriggerListener(debugger);
            } catch (ApiNotFoundException ex) {
                // Ignore
            }
        }
        if (device.implementsAPI(KeyboardAPI.class)) {
            try {
                final KeyboardAPI api = device.getAPI(KeyboardAPI.class);
                api.removeKeyboardListener(debugger);
            } catch (ApiNotFoundException ex) {
                // Ignore
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.input.SystemTriggerAPI

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.