mouseprotocolhandler.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 37 行
JAVA
37 行
/*
* $Id: MouseProtocolHandler.java,v 1.1 2003/12/20 15:00:00 epr Exp $
*/
package org.jnode.driver.input;
/**
* @author qades
*/
public interface MouseProtocolHandler {
/**
* Gets the name of the protocol of this handler.
* @return String
*/
public String getName();
/**
* Does this protocol handler support a given mouse id.
* @param id
* @return True if this handler supports the given id, false otherwise.
*/
public boolean supportsId(int id);
/**
* Gets the size in bytes of a single packet in this protocol.
* @return
*/
public int getPacketSize();
/**
* Create an event based of the given data packet.
* @param data
* @return
*/
public PointerEvent buildEvent(byte[] data);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?