All pastes #941092 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-13 14:34 UTC
rendered paste body
ik.waitForAttachment();
System.out.println(ik.getDeviceName());

Thread.sleep(500);

if (false) {
	System.out.print("closing...");
	System.out.flush();
	ik.close();
	System.out.println(" ok");
	System.out.print("opening...");
	ik.openAny();
	System.out.println(" ok");
	ik.waitForAttachment();
}
if (ik.getInputCount() > 8)
	System.out.println("input(7,8) = (" +
	ik.getInputState(7) + "," +
	ik.getInputState(8) + ")");
	if (false) {
	        System.out.print("turn on outputs (slowly)...");
		for (int i = 0; i < ik.getOutputCount() ; i++) {
			ik.setOutputState(i, true);
			try {
				Thread.sleep(1000);
			} catch (Exception e) {
			}
		}
		System.out.println(" ok");
	}