⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mouseinput.java

📁 桌面控制的程序啊啊 啊啊 啊啊 啊啊 啊啊 啊啊 啊啊啊
💻 JAVA
字号:
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 3/8/2007 1:20:10 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   MouseInput.java

package common;

import java.io.Serializable;

public class MouseInput
    implements Serializable
{

    public MouseInput(int action)
    {
        this.action = action;
    }

    public MouseInput(int action, int key)
    {
        this.action = action;
        switch(action)
        {
        case 501: 
        case 502: 
            this.key = key;
            break;

        case 507: 
            wheel = key;
            break;
        }
    }

    public MouseInput(int action, int x, int y)
    {
        this.action = action;
        this.x = x;
        this.y = y;
    }

    public int getAction()
    {
        return action;
    }

    public int getX()
    {
        return x;
    }

    public int getY()
    {
        return y;
    }

    public int getKey()
    {
        return key;
    }

    public int getWheel()
    {
        return wheel;
    }

    public String toString()
    {
        StringBuffer strBuf = new StringBuffer();
        switch(action)
        {
        case 503: 
            return "Mouse move to: x = " + x + "; y = " + y;

        case 501: 
            return "Mouse pressed: " + key;

        case 502: 
            return "Mouse realsed: " + key;
        }
        return "";
    }

    private int action;
    private int key;
    private int x;
    private int y;
    private int wheel;
}

⌨️ 快捷键说明

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