|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.emn.reactiveinput.AbstractDevice fr.emn.reactiveinput.devices.DAWTKeyboard
Field Summary | |
Out |
alt
|
Out |
backspace
|
Out |
capslock
|
Out |
control
|
Out |
delete
|
Out |
down
|
Out |
end
|
Out |
enter
|
Out |
escape
|
Out |
f1
|
Out |
f10
|
Out |
f2
|
Out |
f3
|
Out |
f4
|
Out |
f5
|
Out |
f6
|
Out |
f7
|
Out |
f8
|
Out |
f9
|
Out |
home
|
Out |
insert
|
Out |
keypressed
|
Out |
keyreleased
|
Out |
left
|
Out |
num0
|
Out |
num1
|
Out |
num2
|
Out |
num3
|
Out |
num4
|
Out |
num5
|
Out |
num6
|
Out |
num7
|
Out |
num8
|
Out |
num9
|
Out |
pagedown
|
Out |
pageup
|
Out |
right
|
Out |
shift
|
Out |
space
|
Out |
tab
|
Out |
up
|
Fields inherited from class fr.emn.reactiveinput.AbstractDevice |
currIndex, ins, outs |
Fields inherited from interface fr.emn.reactiveinput.Device |
AUTO_PROPERTIES |
Constructor Summary | |
DAWTKeyboard()
|
Method Summary | |
void |
close()
Add closing code here if needed. |
void |
doDisable()
Add device disabling code here (does nothing by default). |
void |
eventDispatched(java.awt.AWTEvent e)
Warning: this method must be thread-safe ! |
boolean |
getDisableSystem()
|
Out |
getOut(int key)
|
boolean |
hasExternalInput()
Specifies whether this device has external (implicit) input or not. |
void |
init()
Initialize all to false |
Processor |
open(OpenContext context)
Check DirectMouse also. |
void |
setDisableSystem(boolean newDisableSystem)
|
void |
update()
Updates device's output values. |
Methods inherited from class fr.emn.reactiveinput.AbstractDevice |
addIn, addIn, addOut, copy, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, getProperties, hasExternalOutput, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, setEnabled, setInfo, setInfo, setLastError, setName |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final Out keypressed
public final Out keyreleased
public final Out shift
public final Out alt
public final Out control
public final Out capslock
public final Out down
public final Out up
public final Out left
public final Out right
public final Out insert
public final Out delete
public final Out home
public final Out end
public final Out pageup
public final Out pagedown
public final Out space
public final Out enter
public final Out tab
public final Out escape
public final Out backspace
public final Out num0
public final Out num1
public final Out num2
public final Out num3
public final Out num4
public final Out num5
public final Out num6
public final Out num7
public final Out num8
public final Out num9
public final Out f1
public final Out f2
public final Out f3
public final Out f4
public final Out f5
public final Out f6
public final Out f7
public final Out f8
public final Out f9
public final Out f10
Constructor Detail |
public DAWTKeyboard()
Method Detail |
public void close()
AbstractDevice
close
in interface Device
close
in class AbstractDevice
public void eventDispatched(java.awt.AWTEvent e)
eventDispatched
in interface java.awt.event.AWTEventListener
public Out getOut(int key)
public boolean hasExternalInput()
AbstractDevice
Return false if the device is deterministic from the data & time points of view, i.e. if its output production only depend on the explicit input history (input slots) and device's initial configuration. This is the case of most of the processing devices.
Return true if output values not only depend on the values of input slots, or if output production takes undefined time. Examples of devices with external input are input peripherals and asynchronous devices.
This method is used by the reactive machine to determine if this device is triggered by its input slots, or if it must be triggered continuously (i.e. each tick). This method can also be used by the editor for the device's graphical representation.
hasExternalInput
in interface Device
hasExternalInput
in class AbstractDevice
public Processor open(OpenContext context)
open
in interface Device
open
in class AbstractDevice
Processor
,
Device.open()
public void doDisable()
AbstractDevice
doDisable
in class AbstractDevice
public void init()
init
in interface Processor
init
in class AbstractDevice
Processor.init()
public void update()
AbstractDevice
Subclass init() and update() methods if you want the device to process the data itself. Otherwise, subclass getProcessor() method to use extern processors.
update
in interface Processor
update
in class AbstractDevice
Processor.update()
public void setDisableSystem(boolean newDisableSystem)
public boolean getDisableSystem()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |