Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.awt.event.InputEvent;

public class Main {
    /** Return true if the Control button was held when 'e' was generated. */
    public static boolean controlPressed(InputEvent e) {
        return (e.getModifiersEx() & InputEvent.CTRL_DOWN_MASK) != 0;
    }
}