Examples of MOUSEINPUT


Examples of org.terasology.input.MouseInput

    }

    @Override
    public void onMouseWheelEvent(MouseWheelEvent event) {
        if (capturingInput) {
            MouseInput mouseInput = MouseInput.find(InputType.MOUSE_WHEEL, event.getWheelTurns());
            setInput(InputType.MOUSE_WHEEL.getInput(mouseInput.getId()));
            capturingInput = false;
            event.consume();
        }
    }
View Full Code Here

Examples of winjava.userinput.MOUSEINPUT

    public static final int BOTAO_DIREITO  = 0x02;
    public static final int BOTAO_CENTRAL  = 0x03;
   
    public static boolean primirBotao(int botao){
        MOUSEINPUT[] inputs = new MOUSEINPUT[1];
        inputs[0] = new MOUSEINPUT();
        switch(botao){
            case BOTAO_ESQUERDO: inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_LEFTDOWN;   break;
            case BOTAO_DIREITO : inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_RIGHTDOWN;  break;
            case BOTAO_CENTRAL : inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_MIDDLEDOWN; break;
            case BOTAO_NENHUM  : return true;
View Full Code Here

Examples of winjava.userinput.MOUSEINPUT

        inputs[0].type = INPUT.INPUT_MOUSE;
        return KeyboardInput.SendInput(inputs) == 1;
    }
    public static boolean soltarBotao(int botao){
        MOUSEINPUT[] inputs = new MOUSEINPUT[1];
        inputs[0] = new MOUSEINPUT();
        switch(botao){
            case BOTAO_ESQUERDO: inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_LEFTUP;   break;
            case BOTAO_DIREITO : inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_RIGHTUP;  break;
            case BOTAO_CENTRAL : inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_MIDDLEUP; break;
            case BOTAO_NENHUM  : return true;
View Full Code Here

Examples of winjava.userinput.MOUSEINPUT

        inputs[0].type = INPUT.INPUT_MOUSE;
        return KeyboardInput.SendInput(inputs) == 1;
    }
    public static boolean mover(long x, long y){
        MOUSEINPUT[] inputs = new MOUSEINPUT[1];
        inputs[0] = new MOUSEINPUT();
        inputs[0].type = INPUT.INPUT_MOUSE;
        inputs[0].dx = x*65535/WinJavaSystem.getScreenWidth();
        inputs[0].dy = y*65535/WinJavaSystem.getScreenHeight();
        inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_ABSOLUTE | MOUSEINPUT.MOUSEEVENTF_MOVE;
        return KeyboardInput.SendInput(inputs) == 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.