Example usage for javax.media.j3d InputDevice NON_BLOCKING

List of usage examples for javax.media.j3d InputDevice NON_BLOCKING

Introduction

In this page you can find the example usage for javax.media.j3d InputDevice NON_BLOCKING.

Prototype

int NON_BLOCKING

To view the source code for javax.media.j3d InputDevice NON_BLOCKING.

Click Source Link

Document

Signifies that the driver for a device is a non-blocking driver and that it should be scheduled for regular reads by Java 3D.

Usage

From source file:HelloUniverse.java

public void setProcessingMode(int mode) {

    // A typical driver might implement only one of these modes, and
    // throw an exception when there is an attempt to switch modes.
    // However, this example allows one to use any processing mode.

    switch (mode) {
    case InputDevice.DEMAND_DRIVEN:
    case InputDevice.NON_BLOCKING:
    case InputDevice.BLOCKING:
        processingMode = mode;//from w  ww  .  ja va2 s .  co  m
        break;
    default:
        throw new IllegalArgumentException(
                "Processing mode must " + "be one of DEMAND_DRIVEN, NON_BLOCKING, or BLOCKING");
    }
}