dsto.dfc.util.win32
Class InputMonitor

java.lang.Object
  extended by dsto.dfc.util.win32.InputMonitor

public class InputMonitor
extends Object

Provides global monitoring of keyboard and mouse input events.

Version:
$Revision$
Author:
Matthew Phillips
To do:
remove Swing dependency

Method Summary
static long getLastInputEventTime()
          Get the last time (in seconds) that an input event was seen.
static boolean isMonitorEnabled()
           
static void setMonitorEnabled(boolean newValue)
          Enable/disable global event monitoring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMonitorEnabled

public static void setMonitorEnabled(boolean newValue)
Enable/disable global event monitoring. Must have registered messages window.

See Also:
getLastInputEventTime()

isMonitorEnabled

public static boolean isMonitorEnabled()

getLastInputEventTime

public static long getLastInputEventTime()
Get the last time (in seconds) that an input event was seen. Only available when monitorEnabled == true.

See Also:
setMonitorEnabled(boolean)


Copyright © 2008 Commonwealth of Australia