|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.interaction.Interaction
org.malai.interaction.library.KeyInteraction
public abstract class KeyInteraction
This abstract interaction should be used to define interaction based on keyboards.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
12/01/2011
Nested Class Summary | |
---|---|
(package private) class |
KeyInteraction.KeyInteractionKeyPressedTransition
Defines a transition modifying the key attribute of the interaction. |
Field Summary | |
---|---|
protected int |
key
The key pressed. |
protected java.lang.Object |
object
The object that produced the interaction. |
Fields inherited from class org.malai.interaction.Interaction |
---|
activated, currentState, currentTimeout, handlers, initState, lastHIDUsed, states, stillProcessingEvents |
Constructor Summary | |
---|---|
KeyInteraction()
Creates the interaction. |
Method Summary | |
---|---|
int |
getKey()
|
void |
reinit()
Reinits the state machine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int key
protected java.lang.Object object
Constructor Detail |
---|
public KeyInteraction()
Method Detail |
---|
public void reinit()
IStateMachine
reinit
in interface IStateMachine
reinit
in class Interaction
public int getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |