pointerinterpreter.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 38 行

JAVA
38
字号
/*
 * $Id: PointerInterpreter.java,v 1.2 2003/12/20 15:00:00 epr Exp $
 */
package org.jnode.driver.input;


/**
 * @author qades
 */
public interface PointerInterpreter {

	/**
	 * Probe for a suitable protocol.
	 * @param d
	 * @return True if an protocol was found, false otherwise.
	 */
	public boolean probe(AbstractPointerDriver d);
	
	/**
	 * Gets the name of this interpreter.
	 * @return String
	 */
	public String getName();
	
	/**
	 * Process a given byte from the device.
	 * @param scancode
	 * @return A valid event, or null
	 */
	public PointerEvent handleScancode(int scancode);

	/**
	 * Reset the state of this interpreter.
	 */
	public void reset();
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?